I just tried modifying your Nikon_D200.jpg on my Linux machine, and it
worked fine. I'm using the latest CVS version of libiptcdata, so could
you give that a try also?
still doesn't work, this is probably a Windows-only bug. If
you're willing, I'd really appreciate it if you could track it down in
the code since I don't have access to a Windows machine.
On Sun, 2007-01-28 at 14:29 -0800, Michael Dillon wrote:
> I'm encountering a problem with writing IPTC to pictures from Nikon
> The details:
> I'm using the windows port of version 0.2.1.
> If I attempt operations on any Nikon images (from D200, D80, or 970
> models) I'm unable to write any data.
> If I use the iptctool on the images to read them, it crashes.
> In the debugger, iptc_jpeg_read_ps3() returns a massive value, almost
> the size of the entire image.
> When I call iptc_jpeg_save_with_ps3(), it always returns -1.
> If I use Irfanview to save some IPTC data, then the library works fine
> My code seems to work fine for other images, but not Nikon...
> Some sample images can be found here:
> Does anyone have a suggested fix or workaround for this? I haven't
> started to dig into the library code yet...