openzoom / deepzoom.py

Python Deep Zoom Tools
http://openzoom.org/
Other
176 stars 74 forks source link

Bug in the tile saving in ImageCreator.create #1

Closed alexgula closed 13 years ago

alexgula commented 14 years ago

Code in ImageCreator.create (lines 213-216): if self.descriptor.tile_format == "jpg": tile.save(tile_file, "JPEG", quality=int(self.image_quality * 100)) tile.save(tile_file) saves JPEG image twice, causing unpredictable hangups of Seadragon AJAX in Firefox 3.6. Furthermore, size of DeepZoom folders almost doubles.

Code below fixes the case: if self.descriptor.tile_format == "jpg": tile.save(tile_file, "JPEG", quality=int(self.image_quality * 100)) else: tile.save(tile_file)

gasi commented 14 years ago

Thanks! Feel free to fix it in your fork as I'm not currently working with the Python Deep Zoom Tools. Once I get back to it, I'll fix it ;)

gasi commented 13 years ago

Fixed it.