[OSGeo-Discuss] any library for modifying TIFF tags ?
Jachym Cepicky
jachym.cepicky at gmail.com
Wed Jun 17 06:31:03 PDT 2009
Hi,
I try o add custom (proprietary) tags to TIFF files. I tried to modify
libtiff [1] according to [2], I added lines
libtiff/tiff.h:
#define TIFFTAG_SIGNATURE 65001
libtiff/tif_dirinfo.c (line 392):
{ TIFFTAG_SIGNATURE, TIFF_VARIABLE, TIFF_VARIABLE,
TIFF_UNDEFINED, FIELD_CUSTOM, 1, 0, "Signature" },
The tag should be TIFF_UNDEFINED according to documentation. I'm able to
read the tag value, but never able to set the tag value, no matter, if
the tag is already available in the image or not (fresh image).
I wanted to ask, if there is someone out there, who successfully uses
libtiff or similar/other library/program, for editing of tiff
(preferably UNDEFINED) tags. Any experience with Python-Image?
Thanks
Jachym
[1] http://www.remotesensing.org/libtiff/
[2] http://www.remotesensing.org/libtiff/addingtags.html
--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/JachymCepicky.pgp
Key fingerprint: 0C6D 0EAE 76BD 506C F299 ED8A C8AB 74B8 08D4 E08F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.osgeo.org/pipermail/discuss/attachments/20090617/3a5244b2/attachment.sig>
More information about the Discuss
mailing list