Open jmathai opened 12 years ago
iptc show there is barely anything in it.
it is all in the XMP metadata which we don't decode in openphoto.
@hfiguiere should we leave this open to add XMP parsing in OpenPhoto?
yep. but in the current context, it might not be that easy.
Here's a thread on using SimpleXML to read the XMP data from an image.
http://stackoverflow.com/questions/1578169/how-can-i-read-xmp-data-from-a-jpg-with-php
The GPL 2 licensed ZenPhoto CMS seems to have a working implementation of XMP metadata import. Docs and source are available.
Looks like it's pretty tighly coupled with the zenphoto framework. We could just yank out the bits we need.
Also, technically GPLv2 isn't compatible with Apache v2 (but there are ways).
I'll look at it.
I always forget we're using Apache. I checked for GPL compatibility for the MIT license.
The SimpleXML implementation idea seems much cleaner. What the ZenPhoto solution boils down to is a custom XML parser, with stuff as simple as
$s = strpos($xmpdata, '<');
$e = strpos($xmpdata,'>',$s);
that looks for some known tags.
Let's put it that way: the work to be done is to extract the XMP block, for which we need to parse JPEG. The XMP block in the end is just RDF. And that we have tools.
Sounds like @hfiguiere just took this task on!
I had been the assignee for quite a while :-)
I'm the owner of bug #1323 and now i understand why i wasn't able to find this related bug... it's already two years old. Sorry for the duplicate.
Because of this missing feature the best way for me to add tags to many different photos is to use the new beta-uploader, add all tags into the Tags-box and upload all photos 1-by-1. I tried to do that for 58 files using Batch-edit, but that isn't really an alternative and will take much more time then upload all files 1-by-1 (pin photos, manage tags, clear all pinned photos, pin some other photos... and you always have to "hit" that small pin on the photos in the gallery). Maybe it is better to not tag the photos at all...
When you open a photo and go to "Full details" you can click on "Add description". I suggest to "Add tags" also.
So either add the xmp-support or make it more easy to add tags to many photos or when view a single photo. Hopefully this feature will find the way into stable one day...
The fact that it is that old shouldn't matter to find it. I typed "XMP" in the serach box.
Where do these pictures come from? Importing pictures I exported from Lightroom or Aperture do import the tags properly, because both of these application store the keywords in IPTC which we can easily extracted from the JPEG.
We're aware that this is a general usability issue that needs resolution.
you always have to "hit" that small pin on the photos in the gallery
You can alt+click a photo to select it. Another shortcut is to shift+click on the first photo and shift+click on another photo to select that range.
So either add the xmp-support or make it more easy to add tags to many photos or when view a single photo.
We need both...
Uploaded to: http://test.openphoto.me/photo/f/view Original file: http://awesomeness.openphoto.me/original/201112/1323641686-Untitled_3129457390_o.jpg