indesign 属性 xml 图像

发布于 2024-10-23 17:55:11 字数 252 浏览 7 评论 0原文

我有一个 indesign 文件,它从 XML 文件中提取动态内容。不幸的是,当它引入更新的图像时,它们是 100%,即未缩放以匹配从先前导入编辑的布局。 是否可以使用属性来标记图像,以便代码类似于 html

这些属性可以通过,但图像大小和位置保持不变。 我可以通过在 Photoshop 中调整所有图像的大小来做到这一点,但更愿意使用 xml 即时执行此操作。 我能以某种方式使用 xsl 吗? 我已经到处寻找这个问题好几天了,但找不到答案。 非常感谢。

I have an indesign file which is pulling in dynamic content from an XML file. Unfortunately when it brings in the updated images they are 100% ie not scaled to match the layout as edited from a previous import.
Is it possible to tag an image using attributes so the code would be similar to html

These attributes pull through but the image size an position remains unaltered.
I can do this by resizing all the images in photoshop but would rather do this on the fly using xml.
Could I somehow use xsl?
I"ve looked everywhere for days on this but can't find an answer.
Many thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

临走之时 2024-10-30 17:55:11

感谢您的回复。我找到了解决方案。基本上,您为包含框创建一个对象样式,在这里您可以像设置段落类型一样为图像设置各种选项。 Mac cmd/f7。希望这可以节省某人一些时间......

thanks for your replies. I've found a solution. Basically you create an object style for your containing box, here you can set all kinds of options to an image as you would to a paragraph of type. Mac cmd/f7. Hope this saves someone some time...

无悔心 2024-10-30 17:55:11

我在 InDesign CS3 之前使用过 XML。据我所知,没有办法通过 XML 动态调整导入 InDesign 的图像大小。它不允许您映射图像大小和位置的属性。

幸运的是,我们处理的图像大小和位置都非常统一。我们的解决方法是在将 XML 拉入 Indd 之前使用 Photoshop 操作将图像调整为我们需要的大小。不过,此工作流程可能并不适合所有人。

您可以做的一件事是使用图像的相对路径。您可以将 Indd 模板设置为链接到相对路径(例如 /Images/)并在 XML 中使用该路径。当我不得不将 XML 推送给多个设计人员时,这总是让我省去很多麻烦。

I've used XML in InDesign up to CS3. From what I know, there is no way to size images pulling into InDesign via XML dynamically. It doesn't allow you to map attributes for size and position of images.

Luckily, we worked with images of a pretty uniform size and position. Our workaround has been to use a Photoshop action to size the images to what we need prior to pulling in the XML to Indd. This workflow may not work for everyone, though.

One thing you can do is use relative paths for images. You can setup the Indd template to link to a relative path (ex. /Images/) and use that path in the XML. This always save me a lot of headaches in case I had to push XML to several designers.

苍白女子 2024-10-30 17:55:11

InDesign 始终希望以 100% 的速度导入图片。您可以采取有限的措施来避免这种行为。在 cs5 中,我们终于有了自动调整的选项。相框已选定,您可以将图片自动调整到相框。该选项根据您在“框架安装选项”对话框中的选择起作用。
如果所有图片都以类似的方式缩放,您始终可以在 Photoshop 中创建一个操作来批量缩放图像a。

希望有帮助。

InDesign always wants to import pictures at 100%. There are limited things you can do to avoid this behavior. In cs5 we finally have an option for Autofit. The picture frame is selected and you Autofit the picture to the frame. This option works on e basis of your selection within the Frame Fitting Options dialog.
If all the pictures are being scaled in a similar fashion, you can always create an action within Photoshop to batch scale the imagesa.

Hope that helps.

明天过后 2024-10-30 17:55:11

是的,对象样式执行您想要的操作的能力有限。如果你总是将图像放入框中,它就会起作用。但如果您希望图像与一侧或另一侧对齐,那就更难了。

最好的策略是在需要使用图像之前始终对其进行缩放。您还可以编写可以根据特定标准调整图像大小的 JavaScript。

Yes the Object style has limited ability to do what you want. If you are always fitting the image into the box it will work. But if you want the image to align to one side or another, that's harder.

The best policy is to alway scale images before you need to use them. You can also write a JavaScript that can resize images based on specific criterion.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文