| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2005.06.06 18:33 "Re: tifflib read/write question", by Andrey Kiselev> > > I want to write a IPTC Tag into an existing tiff file. Do I need to > > > load the image first and then write a new image, or is there a way > > > to read/write a tiff like this: open tiff, change tag, close tiff > > > (-> write/excange tag). > > > > Yes, you can do it that way. But every time after tag update you will > > need to rewrite the whole directory, so the size of your TIFF file > > will be increased. > > > > The tiffset utility from the libtiff package does exactly what you > > need, so you can take it as a sample code. > > as I see it is only possible to change the offset of a tag and write > the changed directory with tiffset utility. But if this tag is not in > a tiff this way is not the right one. No, you can also add a new tag using this technique. Regards, Andrey -- Andrey V. Kiselev Home phone: +7 812 5970603 ICQ# 26871517 |
|||||||