xmp

How do you trim the XMP XML contained within a jpg

笑着哭i 提交于 2019-12-05 23:17:25
Through the use of sanselan I've found that the root cause of iPhone photos imported to windows becoming uneditable is that there is content (white space?) after the actual XML (for more details and a linked example of the bad XMP XML see https://apple.stackexchange.com/questions/45326/why-can-i-not-edit-some-photos-imported-from-an-iphone-to-windows-vista ). I'd like to scan through my photo archive and 'trim' the XMP XML. Is there an easy way to do this? I have some java code that can recursively navigate my photo archive and DETECT the issue. I'm not sure how to trim and write the XML back

Embed XMP data to PNG with Objective-C

南笙酒味 提交于 2019-12-05 13:42:17
I need to embed a custom XMP file to a PNG in a iOS app. Until now, what I was able to do is to compile the Adobe XMP toolkit, that generated an Xcode project, then I compiled the project correctly. From there I don't know how to use the library in my Xcode project and how to use it. I've found very little info about this on the Internet. Anyone who did the same wishing to help? If you downloaded the Adobe XMP Toolkit SDK, you can find an example of writing the XMP metadata in "ModifyingXMP.cpp" and an example of reading the already XMP-written file in "ReadingXMP.cpp" file. Note that I am

How to read XMP face data from JPEG in Java

纵然是瞬间 提交于 2019-12-05 06:29:15
问题 I have saved Picasa's face data inside my JPEG files (in XMP) and now I am trying to read that information in Java. So far I am failing and help would be much appreciated. I am trying to use metadata-extractor library (though any other solution would also be fine). I can read the basic information (like the date, the image size etc.), but I am lost at extracting the additional data. This is what I get so far: File file -- this is my JPEG file Metadata metadata = JpegMetadataReader

How can I embed metadata into a custom XMP field with exiftool?

让人想犯罪 __ 提交于 2019-12-05 02:20:23
问题 Can someone please explain how to embed metadata into a custom metadata field in an MP4 file with exiftool? I've searched all the docs and it seems to be related to the config file that needs to be created. Here is what I'm working with. (I know this isnt even close, as its not doing XMP fields, but I havent found a single working example with XMP fields yet. %Image::ExifTool::UserDefined = ( 'Image::ExifTool::Exif::Main' => { 0xd001 => { Name => 'Show', Writable => 'string', WriteGroup =>

Writing XMP Metadata in jpeg (with PHP) - Using Single or Multiple rdf:Description blocks

▼魔方 西西 提交于 2019-12-05 02:06:24
问题 I am attempting to modify the code from PHP_JPEG_Metadata_Toolkit so that I can read and write XMP data correctly for jpeg files using PHP. Currently, the jpeg files (when saved by the Toolkit) give errors with Adobe Photoshop & Bridge because of the XMP block. There are two ways I'm seeing the XMP RDF schema used by Photoshop. The first is what Photoshop is actually saving in the jpg and which I am importing. Photoshop uses a single rdf:Description block for everything. It throws many schema

custom schema to XMP metadata

老子叫甜甜 提交于 2019-12-04 22:28:19
I want to write custom metadata to a pdf file which are not supported by XMP standard schemas hence I wrote my own schema containing my own properties. I can successfully write these additional custom metadata to my PDF file using either PDFBox or iTextPDF library. I am however unable to read the custom metadata at client side without parsing the XMP xml. I guess there should be some API that I am not aware of for getting your custom schema back to your java class. Please help me if I am thinking in right direction or do I actually need to parse the xml for getting my custom data back at

How can I embed metadata into a custom XMP field with exiftool?

删除回忆录丶 提交于 2019-12-03 21:33:12
Can someone please explain how to embed metadata into a custom metadata field in an MP4 file with exiftool? I've searched all the docs and it seems to be related to the config file that needs to be created. Here is what I'm working with. (I know this isnt even close, as its not doing XMP fields, but I havent found a single working example with XMP fields yet. %Image::ExifTool::UserDefined = ( 'Image::ExifTool::Exif::Main' => { 0xd001 => { Name => 'Show', Writable => 'string', WriteGroup => 'IFD0', }, ); 1; #end The command I'm trying to run is: exiftool -config exifToolConfig -show="Lightning"

Reading JPG file's XMP metadata

烈酒焚心 提交于 2019-12-03 20:07:03
问题 I am developing Android application that's supposed to make use of Google Camera's new depth map generation feature. Basically Google has described the meta data used here I can access to most of the metadata, but unfortunately the most important data is encoded as extendedXmp, and I can't get any XMP parsing library to parse it correctly! I've tried Commons-Imaging, metadata-extractor and most recently Adobes XMPCore XMPCore might be able to handle the extended version, but there's no

Writing XMP Metadata in jpeg (with PHP) - Using Single or Multiple rdf:Description blocks

寵の児 提交于 2019-12-03 17:19:51
I am attempting to modify the code from PHP_JPEG_Metadata_Toolkit so that I can read and write XMP data correctly for jpeg files using PHP. Currently, the jpeg files (when saved by the Toolkit) give errors with Adobe Photoshop & Bridge because of the XMP block. There are two ways I'm seeing the XMP RDF schema used by Photoshop. The first is what Photoshop is actually saving in the jpg and which I am importing. Photoshop uses a single rdf:Description block for everything. It throws many schema identifiers (urls) within the block itself PLUS adds values for many metadata fields. Then following

How to read XMP face data from JPEG in Java

半城伤御伤魂 提交于 2019-12-03 17:05:18
I have saved Picasa's face data inside my JPEG files (in XMP) and now I am trying to read that information in Java. So far I am failing and help would be much appreciated. I am trying to use metadata-extractor library (though any other solution would also be fine). I can read the basic information (like the date, the image size etc.), but I am lost at extracting the additional data. This is what I get so far: File file -- this is my JPEG file Metadata metadata = JpegMetadataReader.readMetadata(file); XmpDirectory xmpDirectory = metadata.getDirectory(XmpDirectory.class); XMPMeta xmpMeta =