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.
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