Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (30 sloc) 1.3 KB


Deep Zoom Slicer slices images into several tiles and creates xml descriptor file. Sliced images are compatible for use with OpenZoom, Deep Zoom and Seadragon.


require 'deep_zoom''path/to/sample.jpg').slice!

Or define custom options:

file_options  = { :dir     => 'cropped',
                  :format  => 'png',
                  :quality => 80 }
slice_options = { :tile_size => 256,
                  :overlap   => 4 }

img_path = 'path/to/sample.jpg', file_options).slice!(slice_options)

Remove Deep Zoom created files:, file_options).remove_files!

Additional Information

Copyright © 2009, MESO Web Scapes, Sascha Hanssen ( All rights reserved.


  • Sascha Hanssen <>

Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

Deep Zoom and Seadragon are trademarks or registered trademarks of Microsoft, Inc.