GNOME Bugzilla – Bug 357237
Request ability to edit EXIF/JPG comment
Last modified: 2018-07-12 00:07:59 UTC
I'd love the ability to view/export the JPG or EXIF comment field of my images. As I switch between different photo view programs, tags stored outside the image are lost. Attached is C source code which can set a comment. Note that the charset involved is undefined, but it seems rather safe to use UTF-8.
Created attachment 73243 [details] C source code for 'setcomment' which does a mv/copy/mv to losslessly edit jpg comments. C source code for 'setcomment' which does a mv/copy/mv to losslessly edit jpg comments. Use "rdjpgcom" to view such comments from most Linux command lines.
I don't really understand your request... what do you want from f-spot in this field ?
Created attachment 73247 [details] Test file, with a Comment embedded
Thanks for asking. I'd want two things from F-Spot: 1) If there is a COM block in a JPG, show it along with the image (perhaps as a tooltip). The COM block of the attached image reads "Smiley Face", you can see it with "rdjpgcom" on most Linux boxes. 2) Add the ability to edit the COM block of JPG images (and perhaps the related comment fields of EXIF headers, and GIF images as well). And if that's all working, perhaps a third thing would be great: 3) Add an option to mirror the current "tag" inside the JPG COM block, so it gets exported or imported along with the image. A related feature would read the JPG COM block when an image is imported, and auto-add any tags found. ----------------------------------------------------------------------- I added a similar feature to KDE a while back (the ability to view and edit JPG comments).
Last I checked F-Spot stores the description/comment in the Exif.Tag.UserComment For the moment (CVS) it do not read it though.
I took your picture, imported it to F-Spot, and changed the title from "Smiley Face" (which F-Spot did not read since reading description is disabled for the moment) to "Two Circles and a half moon". Then I verified that I could see this comment in Eye of Gnome (image viewer). Original: strings ~/Desktop/test.jpg | head JFIF Exif Smiley Face 27AGQVv After setting F-Spot description: strings ~/Photos/2006/9/23/test.jpg | head -20 JFIF Exif f-spot version 0.2.1 2006:09:23 09:04:20 ASCII Two circles and a half moon http://ns.adobe.com/xap/1.0/ <?xpacket begin=" " id="testing"?> <x:xmpmeta xmlns:x="adobe:ns:meta/"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" /> </x:xmpmeta> <?xpacket end="r"?> Smiley Face F-Spot is currently not reading any descriptions fields at all :( Main reason is that there are so many different comment, description, Headline, caption etc fields, and F-Spot only handles one row today.
ok, I did not know about this COM field. From man rdjpgcom -- The JPEG standard allows "comment" (COM) blocks to occur within a JPEG file. Although the standard doesn’t actually define what COM blocks are for, they are widely used to hold user-supplied text strings. This lets you add annotations, titles, index terms, etc to your JPEG files, and later retrieve them as text. COM blocks do not interfere with the image stored in the JPEG file. The maximum size of a COM block is 64K, but you can have as many of them as you like in one JPEG file. So we have the following fields to describe (comment/title etc) a photograph UserComment = ExifNS + "UserComment"; Headline = PhotoshopNS + "Headline"; Caption = PhotoshopNS + "Caption"; Title = DcNS + "title"; Description = DcNS + "description"; EXIF COM field (not crystal clear though)
Since GIMP can read/write comments, that's an important type to read. If I remember correctly, GIMP uses COM blocks. What's important to me is the ability to search by the contents of any comment block... so I can label something "art bicycle rack Seattle" and later find it... Also note that GIF images support comments.
*** Bug 337805 has been marked as a duplicate of this bug. ***
In the interest of interoperability: Google's Picassa puts its captions into "Description" under extended meta data when I look in the meta data browser using F-Spot. I don't use Picassa myself, but it seems to be very popular amongst my friends with whom I exchange photos.
F-Spot has moved to https://github.com/f-spot/f-spot/issues If this Bugzilla ticket is still valid in a recent version of F-Spot, please feel free to post this topic as a ticket in the F-Spot project on GitHub. Closing this report as WONTFIX as part of Bugzilla Housekeeping as we are planning to shut down GNOME Bugzilla in favor of GNOME Gitlab.