<br><br><div><span class="gmail_quote">2007/11/12, Paweł Marciniak <<a href="mailto:pave@o2.pl">pave@o2.pl</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Gilles Caulier wrote:<br><br>> 2007/11/5, Paweł Marciniak <<a href="mailto:pave@o2.pl">pave@o2.pl</a>>:<br>>><br>>> Thank you Gilles for replying!<br>>><br>>> Gilles Caulier wrote:<br>>> > Exiv2 do not support yet PNG metadata for writting. Patch still
<br>>> uncomplete<br>>> > on my computer.<br>>> > [...]<br>>> > yes, Caption, date, rating, and tags are store in digiKam database.<br>>><br>>> I see. Is there a way (it may even involve some hacking) to retrieve the
<br>>> captions from db and embed them in jpeg files? Otherwise it's A LOT of<br>>> rewriting for me :(<br>><br>><br>> But al is always done by digiKam. Are you sure to have set on right right<br>
> options in Metadata setup dialog page ?<br><br>Actually, this is a bug. I filed it already:<br><a href="http://bugs.kde.org/show_bug.cgi?id=152208">http://bugs.kde.org/show_bug.cgi?id=152208</a><br><br>>>> When converting manually with convert, no error is raised, but when I
<br>>>> try<br>>><br>>> >> to<br>>> >> view the converted image in digiKam, no metadata is shown at all.<br>>> ><br>>> > Exif and iptc ??? Impossible (:=))). All my photo collection are in PNG
<br>>> > (taken originally from JPEG or RAW), and metadata still present of<br>>> course.<br>>> ><br>>> > Witch camera you use ? Can you send me a JPEG file taken with your<br>>> camera
<br>>> > to test. How are you converted your JPEG files to PNG ? Using Camera<br>>> > interface during download ?<br>>><br>>> Yes, there's nothing after opening the photo in digiKam (display(1),
<br>>> however, sees exif metadata in the jpeg, but not iptc). I found out that<br>>> the digiKam console says:<br>>><br>>> 8<-------------------------------------<br>>> Warning: IPTC dataset 
Iptc.Application2.Preview has invalid size 67904;<br>>> skipped.<br>><br>><br>> This is the problem. Preview (an embeded and reduced JPEG image) is set by<br>> digiKam in IPTC to speed up preview loading (F4).
<br>><br>> problem is than preview IPTC can be larger than 64Kb (see iptc/iim paper)<br>> and a jpeg section (used to embeded iptc in jpeg file) is limited to 64Kb.<br>> Ther eis no size limitattion with PNG (or TIFF)
<br><br>OK, thanks A LOT for that pointer! It allowed me to find a workaround by<br>removing the iptc sections from png files with `convert +profile iptc`, and<br>then seamlessly (well, not really, see the above bug) finishing the work
<br>with digiKam.</blockquote><div><br><br>No. <br><br>No need to remove the whole IPTC content. Just remove the iptc.application2.preview tags. You can use ExifTool to do it over PNG file. This is what i will do in BatchProcessImages kipi-plugins to fix the problem.
<br><br>In fact, to be clear, IPTC spec allow to set a preview image size to 256Kb max. Of course JPEG section is limited to 64Kb. You understand the problem ?<br><br>This is a side effect and incompatibility against 2 separate spec written by 2 organizations without a real dialog : 
<a href="http://iptc.org">iptc.org</a> and jpeg.org...<br><br>Gilles</div></div>