问题标签 [xmp]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
506 浏览

actionscript-3 - as3-xmp-file library to work with PNG images

The example stated in as3-xmp-file is working with a .JPG format file. I tried to change the test.jpg to an test.png file. But it does not seems to update the title up into the the .png file.

Anyone have any ideas how can this be done?

Code from as3-xmp-file website

0 投票
2 回答
4506 浏览

macos - Automator/AppleScript 在同一目录中查找具有不同扩展名的相同文件名

我想创建一个自动化操作来帮助管理 DNG/XMP 文件。我希望能够将 DNG(或多个)拖到将 DNG 和匹配的 XMP 文件发送到垃圾箱的操作上。除了扩展名之外,这些文件具有相同的名称,它们位于同一目录中。例如,IMGP1361.DNG 和 IMGP1361.xmp

对于 shell 脚本来说,这将是一项简单的任务,但是是否有 Automator 方法可以做到这一点(以了解有关 Automator 的更多信息)?有没有办法获取输入查找器项目的文件名,在变量中更改它并将其用作另一个操作的输入?

谢谢。

0 投票
1 回答
1024 浏览

xpath - 从 XMP 中提取所有值

我需要使用 XPATH 表达式从 XMP 文件中提取一些信息。
我有一个这样的 XMP 文件:

我想提取所有dotshape值(由空格、斜线、逗号分隔......无论如何)。
我试过了 :

但我只提取了第一个点形状。
有什么解决办法吗?

0 投票
2 回答
523 浏览

iphone - 如何修剪 jpg 中包含的 XMP XML

通过使用 sanselan,我发现导入到 Windows 的 iPhone 照片变得不可编辑的根本原因是实际 XML 之后有内容(空白?)(有关更多详细信息和错误 XMP XML 的链接示例,请参阅https ://apple.stackexchange.com/questions/45326/why-can-i-not-edit-some-photos-imported-from-an-iphone-to-windows-vista)。

我想扫描我的照片存档并“修剪”XMP XML。

是否有捷径可寻?

我有一些 java 代码可以递归地浏览我的照片存档并检测问题。我不确定如何修剪和写回 XML。

0 投票
1 回答
479 浏览

java - 如何将 XMP XML 块序列化为现有的 JPEG 图像?

我有许多包含损坏的 XMP XML 块的 JPEG 图像。我可以轻松修复这些块,但我不确定如何将“固定”数据写回图像文件。

我目前正在使用 JAVA,但我愿意接受任何能让这项任务变得简单的事情。

这是前面提出的关于 XMP XML 的另一个问题的目标。

0 投票
0 回答
185 浏览

apache-tika - 是否有任何 Java 库可以从文件中读取分层 xmp 数据?

我尝试研究 Apache Tika,但它似乎将 XMP 关键字扁平化为一个级别。

是否有任何 Java 库可以从文件中读取分层 xmp 数据?即使只是图像文件就足够了,但文件类型越多越好。

0 投票
0 回答
2141 浏览

java - 如何使用 Apache Sanselan 库在 jpg 文件中重写 XMP XML?

我想将 XMP 写入 jpg。我使用 Apache Sanselan 库。在下面的代码中,我试图读取 XMP XML 并将其再次写入同一个文件,但得到异常(ImageReadException:Unexpected EOF。)。

如果输入和输出文件不同,则代码可以正常工作。

但是,如果我读取和写入同一个文件,我会得到一个异常。

0 投票
1 回答
789 浏览

php - How to manipulate diverse meta-informations of image files in PHP

There are diverse formats to add meta-Information to image (and video) files. nearly every digitalcamera add them to fotos. And sometimes people don't want them to be published.

The standards I found so far are:

  1. Exif
  2. IPTC-NAA
  3. XMP

Are there more? (e.g. not image specific, but general meta standard, that can be attached to the end of every file)

Reading the information that is saved, using PHP seems to be possible for the three named formats.

But how can the data be manipulated (changed, added)

How can I delete all possible meta-data using PHP? (i.e. all infomation that does not belong to the image itself)

0 投票
2 回答
344 浏览

pdf - 我可以在 XMP 中为 PDF 定义新属性吗?

我知道 XMP 中有一些用于 PDF 文件的属性,例如:

但我想定义自定义属性,例如:

我可以做吗?

0 投票
1 回答
268 浏览

adobe-indesign - 使用 XMPie 维护 InDesign CS5.5 导入设置

我们正在尝试使用 XMPie 动态引入 pdf 文件并将它们集中在一个框架内。但是,以类似于 Photoshop 的方式,文件由边界框导入,不允许我们设置任何其他参数。我们可以通过导入文件使其在个人层面上工作,但 InDesign 和 XMPie 会记住这些设置。任何帮助,将不胜感激。

我们需要这些通过媒体框和中心导入,我们使用的是 InDesign CS5.5。

谢谢。