openzoom / deepzoom.py

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

Idea: convert an existing DZI between formats #4

Open iangilman opened 12 years ago

iangilman commented 12 years ago

Given a DZI of PNGs, replace them all with JPGs and update the XML.

NotTarts commented 12 years ago

In this case I think it would actually be faster to re-tile the entire image in a different format instead.

iangilman commented 12 years ago

Good point. I should specify the purpose of this feature:

Sometimes I want to run some post-processing on the tiles (something that wouldn't make sense to apply before the tiling process, such as a sharpen filter, or something you want to vary from level to level), so I create the tiles in a lossless format (such as png), do my post-processing, and then need to convert them to my delivery format (jpg). Currently I do the conversion with GraphicConverter, but it would be slick if this script could do it.

Of course, perhaps #3 (post-processing hook) is sufficient.