xmp

getting XMP File does not have a constructor error through ExtendScript

不羁岁月 提交于 2019-12-11 09:05:08
问题 I am using In Design CC 2019, on my Mac OS. When I am trying to get XMP data for my .indd (InDesign document) using ExtendScript . I am currently getting the error like this: XMPFile Does not have a constructor . Below is my script. // load XMP Library function loadXMPLibrary(){ if ( ExternalObject.AdobeXMPScript){ try{ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');} catch (e){alert('Unable to load the AdobeXMPScript library!'); return false;} } return true; } var

Check InDesign Links for missing XMP - DocumentID and InstanceID

时间秒杀一切 提交于 2019-12-11 04:56:32
问题 I am using ExtendScript to work on metadata information of .indd files in InDesignCC 2019. My requirement is that I need to access all individual links metadata associated with the .indd file and see whether any of the links metadata is missing DocumentID and InstanceID . If any of the links metadata do not have a value for DocumentID and/or InstanceID properties then I need to display the file name associated with that link, indicating that, that particular file is missing a DocumentID and

Read XMP from existing PDF with iTextSharp

筅森魡賤 提交于 2019-12-11 02:16:09
问题 How can I read XMP from an existing PDF file using iTextSharp? 回答1: I'm dangerously ignorant of itextSharp but this did the job for me: PdfReader pdf = new PdfReader(fileName); string metadataXml = System.Text.Encoding.Default.GetString(pdf.Metadata); 回答2: I'd encourage you to check out the iTextSharp.text.xml.xmp namespace. I've never done what you're trying to do but the XmpReader class looks promising. 来源: https://stackoverflow.com/questions/1522101/read-xmp-from-existing-pdf-with

Adding custom namespace to metadata (BitmapMetadata)

百般思念 提交于 2019-12-10 17:39:50
问题 Here's a quick question: how to correctly add a custom namespace to XMP using BitmapMetadata ? Let's say I want the namespace to look like this: xmlns:MyNamespace="http://test" There's no clear way how to add the namespace in the BitmapMetadata , so I tried this: //I retrieve the image frame (Frame[0]), then: var metadata = (BitmapMetadata) frame.Metadata.Clone(); //Covering all bases metadata.SetQuery("/app1/ifd/PaddingSchema:Padding", 4096); metadata.SetQuery("/app1/ifd/exif/PaddingSchema

Is XMP metadata supported in PNG images?

情到浓时终转凉″ 提交于 2019-12-10 14:17:13
问题 I've been trying to understand how XMP metadata worked on PNG files for the last few hours but couldn't quite wrap my head around it. If I create a PNG image with Photoshop, save it and open the File Info dialog (File > File Info or Ctrl+Alt+Shift+I), I can see some XMP properties like CreateDate , CreatorTool or ModifyDate . Now if I try to open the file with exiv2 and read the metadata it seems to not find anything: auto image = Exiv2::ImageFactory::open(imagePath); image->readMetadata();

need setProperty syntax for XMP object

此生再无相见时 提交于 2019-12-08 22:38:52
问题 I am randomly generating DocumentID and InstanceID , but facing problem in setting property DocumentID and InstanceID to the xmp object. How can I set the generated DocumentID and InstanceID to my allXMP ? var xmpFile = new XMPFile(linkFilepath, XMPConst.FILE_INDESIGN, XMPConst.OPEN_FOR_UPDATE); var allXMP = xmpFile.getXMP(); // Retrieve values from external links XMP. var documentID = allXMP.getProperty(XMPConst.NS_XMP_MM, 'DocumentID', XMPConst.STRING); var instanceID = allXMP.getProperty

XMPGPano meta data to image by C# : for facebook 360 image

大城市里の小女人 提交于 2019-12-08 06:37:47
问题 I am making facebook 360 image by custom stitching using C#-emgu. Can able to set EXIF tags(make & model) using C# image property items. // Sample code for set exif make tag var dummy1 = Image.FromFile(@"filePathName.jpg"); PropertyItem pItem = dummy1.PropertyItems[0]; string str = System.Text.Encoding.UTF8.GetString(pItem.Value); pItem.Id = 0x010F; // make tag id pItem.Type = 2; pItem.Value = System.Text.Encoding.UTF8.GetBytes("*****"); pItem.Len = pItem.Value.Length; jpeg1.SetPropertyItem

How do you trim the XMP XML contained within a jpg

ε祈祈猫儿з 提交于 2019-12-07 18:04:39
问题 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

XMPGPano meta data to image by C# : for facebook 360 image

限于喜欢 提交于 2019-12-07 16:35:27
I am making facebook 360 image by custom stitching using C#-emgu. Can able to set EXIF tags(make & model) using C# image property items. // Sample code for set exif make tag var dummy1 = Image.FromFile(@"filePathName.jpg"); PropertyItem pItem = dummy1.PropertyItems[0]; string str = System.Text.Encoding.UTF8.GetString(pItem.Value); pItem.Id = 0x010F; // make tag id pItem.Type = 2; pItem.Value = System.Text.Encoding.UTF8.GetBytes("*****"); pItem.Len = pItem.Value.Length; jpeg1.SetPropertyItem(pItem); Cant able to set XMPGPano tags below listed by C#. XMPGPano docs in google street view *

Face tagging information and photo metadata

青春壹個敷衍的年華 提交于 2019-12-05 23:44:21
问题 Is there a standard way to read/write face-tags from/into photo meta-data? Can I use it to import face-tagging information from popular photo organizers? 回答1: Yes. Metadata Working Group (i.e. Adobe, Microsoft, Sony, Nokia, and others) has developed a standard extension of XMP to do that, see Image Region Metadata Section 5.9 in the Metadata Working Group Spec. Another extension of XMP has been done by Microsoft for Windows Live Photo Gallery and is supported by .NET API. See People Tagging