xmp

Reading/Writing image XMP on iPhone / Objective-c

心已入冬 提交于 2019-12-03 16:43:07
I'm trying to read XMP information from a jpeg on iPhone. I can get tags from IPTC, TIFF or EXIF easily using ImageIO but not XMP. I'm specially interested the rating tag. Does anyone know how to do that? Cyrus Fisher I've been trying to figure this out myself for a bit. Based on what I've found it looks like a you will need to create or find a custom toolset for parsing the XMP data. It is stored in an XML format. Adobe has an SDK and toolset for dealing with XMP data that can be found here. If you look into that there was an error in the compilation instructions for the SDK in XCode. You can

How can you serialize an XMP XML block to an existing JPEG Image?

只谈情不闲聊 提交于 2019-12-01 12:14:28
I have many JPEG images which contain corrupted XMP XML blocks. I can easily fix these blocks but I'm unsure how to write the 'fixed' data back to the image files. I'm currently using JAVA but am open to anything that will make this task easy. This is the goal for another question around XMP XML asked earlier. In JAVA you can use the Apache Sanselan library : String newXmpXmlString = "<the><new/><xmp/><xml/></the>"; File file = new File('path/to/file'); new JpegXmpRewriter().updateXmpXml(new ByteSourceFile(file), new BufferedOutputStream(new FileOutputStream(file)), newXmpXmlString); For a

Reading data metadata from JPEG, XMP or EXIF in C#

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 23:23:30
I've been looking around for a decent way of reading metadata (specifically, the date taken) from JPEG files in C#, and am coming up a little short. Existing information, as far as I can see, shows code like the following; BitmapMetadata bmd = (BitmapMetadata)frame.Metadata; string a1 = (string)bmd.GetQuery("/app1/ifd/exif:{uint=36867}"); But in my ignorance I have no idea what bit of metadata GetQuery() will return, or what to pass it. I want to attempt reading XMP first, falling back to EXIF if XMP does not exist. Is there a simple way of doing this? Thanks. tsvallender The following seems

Read image XMP data in Python

落花浮王杯 提交于 2019-11-28 21:22:38
Can I use PIL, like in this example ? I only need to read the data, and I'm looking for the easiest simplest way to do it (I can't install pyexiv ) . edit: I don't want to believe that the only way to do this is with some library ( python-xmp-toolkit , pyexiv2 , ...) that needs Exempi and Boost. There must be another option! dirac3000 Well, I was looking for something similar, then I came across the PHP equivalent question and I translated the anwer to Python: f = 'example.jpg' fd = open(f) d= fd.read() xmp_start = d.find('<x:xmpmeta') xmp_end = d.find('</x:xmpmeta') xmp_str = d[xmp_start:xmp

Reading data metadata from JPEG, XMP or EXIF in C#

a 夏天 提交于 2019-11-27 21:17:10
问题 I've been looking around for a decent way of reading metadata (specifically, the date taken) from JPEG files in C#, and am coming up a little short. Existing information, as far as I can see, shows code like the following; BitmapMetadata bmd = (BitmapMetadata)frame.Metadata; string a1 = (string)bmd.GetQuery("/app1/ifd/exif:{uint=36867}"); But in my ignorance I have no idea what bit of metadata GetQuery() will return, or what to pass it. I want to attempt reading XMP first, falling back to

Symbol not found when using template defined in a library

删除回忆录丶 提交于 2019-11-27 16:24:09
I'm trying to use the adobe xmp library in an iOS application but I'm getting link errors. I have the appropriate headers and libraries in my path, but I'm getting link errors. I double-checked to make sure the headers and library are on my path. I checked the mangled names of the methods, but they aren't in the library (I checked using the nm command). What am I doing wrong? Library Header: #if defined ( TXMP_STRING_TYPE ) #include "TXMPMeta.hpp" #include "TXMPIterator.hpp" #include "TXMPUtils.hpp" typedef class TXMPMeta <TXMP_STRING_TYPE> SXMPMeta; // For client convenience. typedef class

Read/Modify PDF Metadata using iTextSharp

随声附和 提交于 2019-11-27 08:29:40
I am trying to use iTextSharp to read/modify PDF metadata. I figured out how to do it using pdfreader and pdfstamper. I was wondering if I could also read/modify additional metadata information like copyright information and few others within the XMP photoshop namespace. I would greatly appreciate any pointers to the solution. Thank you, Murugesh. You can read metadata using `PdfReader'. I've read metadata like this: PdfReader reader = new PdfReader("HelloWorldNoMetadata.pdf"); string s = reader.Info["Author"]; You can try the iTextSharp.text.xml.xmp.XmpWriter class to write metadata. I've

How can I read XMP data from a JPG with PHP?

≡放荡痞女 提交于 2019-11-26 19:20:52
问题 PHP has built in support for reading EXIF and IPTC metadata, but I can't find any way to read XMP? 回答1: XMP data is literally embedded into the image file so can extract it with PHP's string-functions from the image file itself. The following demonstrates this procedure (I'm using SimpleXML but every other XML API or even simple and clever string parsing may give you equal results): $content = file_get_contents($image); $xmp_data_start = strpos($content, '<x:xmpmeta'); $xmp_data_end = strpos(

Symbol not found when using template defined in a library

半腔热情 提交于 2019-11-26 18:38:11
问题 I'm trying to use the adobe xmp library in an iOS application but I'm getting link errors. I have the appropriate headers and libraries in my path, but I'm getting link errors. I double-checked to make sure the headers and library are on my path. I checked the mangled names of the methods, but they aren't in the library (I checked using the nm command). What am I doing wrong? Library Header: #if defined ( TXMP_STRING_TYPE ) #include "TXMPMeta.hpp" #include "TXMPIterator.hpp" #include