Closed alexgula closed 13 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)
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 ;)
Fixed it.
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)