Twinside / Juicy.Pixels

Haskell library to load & save pictures
BSD 3-Clause "New" or "Revised" License
237 stars 57 forks source link

support reading compressed zTXt metadata from PNG files #177

Closed claudeha closed 5 years ago

claudeha commented 5 years ago

Generalized textToMetadata to take getters as arguments to avoid having to duplicate all the field-name-specific code for tEXt and zTXt (which are the same except that the latter's data is compressed).

No API changes.

Tested: zTXt reading of a file generated with ImageMagick convert works fine now.

Not tested: zTXt writing is not exposed in the API and I didn't want to change all tEXt writing to zTXt arbitrarily.

Fixes: https://github.com/Twinside/Juicy.Pixels/issues/176

Twinside commented 5 years ago

Thanks, expect a bumped version on hackage soon