This is a quick example showing how to get Leaflet to handle image tile output generated by the Ruby DZT library, using Leaflet-Deepzoom as a bridge. For the time being only Leaflet 0.7.7 is supported, not the latest version.
Assuming you have a folder called images
containing the image you want:
dzt slice images/image-file.jpg --output=tiles --format=jpg --tile-size=256 --overwrite=true