After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 357237 - Request ability to edit EXIF/JPG comment
Request ability to edit EXIF/JPG comment
Status: RESOLVED WONTFIX
Product: f-spot
Classification: Other
Component: Tags
CVS
Other All
: Normal enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
gnome[unmaintained]
: 337805 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-09-22 20:38 UTC by Bryce Nesbitt
Modified: 2018-07-12 00:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
C source code for 'setcomment' which does a mv/copy/mv to losslessly edit jpg comments. (14.93 KB, text/plain)
2006-09-22 20:40 UTC, Bryce Nesbitt
Details
Test file, with a Comment embedded (2.36 KB, image/jpeg)
2006-09-22 21:13 UTC, Bryce Nesbitt
Details

Description Bryce Nesbitt 2006-09-22 20:38:11 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.
Comment 1 Bryce Nesbitt 2006-09-22 20:40:33 UTC
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.
Comment 2 Stephane Delcroix 2006-09-22 21:08:16 UTC
I don't really understand your request... what do you want from f-spot in this field ?
Comment 3 Bryce Nesbitt 2006-09-22 21:13:59 UTC
Created attachment 73247 [details]
Test file, with a Comment embedded
Comment 4 Bryce Nesbitt 2006-09-22 21:17:56 UTC
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).
Comment 5 Bengt Thuree 2006-09-22 21:34:36 UTC
Last I checked F-Spot stores the description/comment in the Exif.Tag.UserComment

For the moment (CVS) it do not read it though.
Comment 6 Bengt Thuree 2006-09-22 23:19:22 UTC
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.

Comment 7 Bengt Thuree 2006-09-22 23:38:00 UTC
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)
Comment 8 Bryce Nesbitt 2006-09-23 01:54:45 UTC
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.
Comment 9 Bengt Thuree 2006-09-24 04:23:56 UTC
*** Bug 337805 has been marked as a duplicate of this bug. ***
Comment 10 shartrec 2007-02-28 08:59:00 UTC
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.
Comment 11 André Klapper 2018-07-12 00:07:59 UTC
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.