简体   繁体   English

具有PDF矢量图像的资产目录不会为iOS导出@ 3x分辨率

[英]Asset catalog with PDF Vector Image does not export @3x resolution for iOS

I am trying to use PDF Image in my Asset Catalogs files to automatically generate png files. 我正在尝试在“资产目录”文件中使用PDF图像来自动生成png文件。 This feature as been presented in WWDC 2014, video 411 (What's new in Interface Builder) 此功能已在WWDC 2014的视频411中进行了介绍(Interface Builder中的新增功能)

On iOS XCode is supposed to render the PDF to @1x, @2x, @3x PNG at the build time. 在iOS上,XCode应该在构建时将PDF呈现为@ 1x,@ 2x,@ 3x PNG。 It checked at my generated archives using cartool (cannot post the link as I lack reputation on SO) and it seems only the @1x and @2x resolutions are generated. 它使用cartool在我生成的档案文件中进行了检查(由于我在SO上缺乏声誉,因此无法发布链接),似乎只生成了@ 1x和@ 2x分辨率。

I looked a bit around the internet and found this post and this one . 我环顾了一下互联网,发现了这篇文章这篇 文章 The later provides a sample project, which I tried. 稍后提供了一个示例项目,我尝试过。 It also only generated those 2 resolutions. 它还仅生成了这两个分辨率。

Did anyone tried this and lucky generated @3x images? 有没有人尝试过这种方法并幸运地生成了@ 3x图像?

Regards 问候

Nicolas 萨科

Found a fork that someone made. 发现有人制造的叉子。 Seems to have worked for me to also get the @3x PNG files. 似乎为我工作也获得了@ 3x PNG文件。 Hope this helps! 希望这可以帮助!

https://github.com/GPS/cartool https://github.com/GPS/cartool

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM