-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPS, IPTC Metadata is not saved between edits. #131
Comments
Found the export, import and document modules... Your thought does this sound like it will work? So implementation should be easy: Exporter: /Seashore/source/exporter/JPEGExporter.m line 245: Export module will need to be upgraded to using CoreImage but with that is will support all type core image supports. Document container ie. add place to save it in
Show how much rich metadata is accessible using core images approach: I would suggest using CoreImage Metadata structure to hold all data. Importing metadata exifData = [(NSBitmapImageRep*)imageRep valueForProperty:@"NSImageEXIFData"]; Has some limitations Changing it to use core image would be my recommendation:
|
Thanks Mark for the detailed report. I will see what I can do. Feel free to submit a PR as well. One thing to keep in mind, that any APIs used must be available for 10.7+ or it is a bit more work since they have to be guarded. |
A quick check shows the additional metadata appears in 10.4+ so it shouldn't be a problem. |
@flemingm Hi Mark, I'm curious - the EXIF standard appears to have support for GPS tags https://exiftool.org/TagNames/GPS.html - is this not sufficient ? |
Exchangeable image file format (EXIF) standard is at http://www.exif.org/Exif2-2.PDF for digital still cameras. Yes EXIF contains the GPS data from the camera. It also has some limited fields for comments. Also many of EXIF Tag are same as TIFF Rev. 6.0 Attribute Information Search engines have started to show specific metadata fields of ITPC photos in search results next to a thumbnail of the photo. In Autumn 2018, Google introduced some new features to their image search. When an image is shown, one could have clicked on “Image Credits” and a popup will show the image’s creator, credit line and a copyright notice. From 28 May 2020 on these fields are shown instantly next to a photo, no click is required anymore. It works by reading the corresponding embedded IPTC photo metadata fields from the image file. In Summer 2020, Google is planning to extend this feature to also display the image’s licence (what we call Web Statement of Rights) in the results of all image searches. Google will also show a link to a web page where a licence to re-use the image can be obtained – the Licensor URL. IPTC was designed to be Open standards for the news media, see standards. Read about it at: https://iptc.org/standards/photo-metadata/quick-guide-to-iptc-photo-metadata-and-google-images/ Mark |
started working on this in flemingm branch. will need to update the following to export metadata. gifExporter,
// something like: NSDictionary * options = [ //new empty data to write the final image data to |
I have a draft working implementation for reading and just test jpeg exporter -- need to clean up code in exporter then do other exporter's |
was browsing and found NSBitmapImageRep support NSImageIPTCData is support in 12.0 |
When opening image with metadata and resaving to JPG, some of the Metadata is stripped when saving it. EXIF metadata is not stripped. BUT GPS and IPTC metadata is stripped.
Sample before saving with IPTC data:
Same file after saving:
AS I am not familiar with the code, I do not know where to look to fix this. If you point me in the right direction, I will attempt to find time to fix it.
I am also willing to help add option to edit/insert IPTC metadata.
Mark
The text was updated successfully, but these errors were encountered: