简体   繁体   English

如何从.psd生成不同大小的图标?

[英]How to generate different sizes of icons from .psd?

iOS app needs different sizes of icons to fit different screens, so after we design an icon with psd format, we will have to generate many icons(29px*29px,40px*40px,...), which is a tedious task. iOS应用程序需要不同大小的图标以适合不同的屏幕,因此在设计了psd格式的图标后,我们将不得不生成许多图标(29px * 29px,40px * 40px ...),这是一项繁琐的任务。

How to batch generate them at a time? 如何一次批量生成它们?

You can do this by Actions... in Actions tab click record and do the task... photoshop will record it and next time you went to do this again just click on "Play" icon 您可以通过“动作”来执行此操作...在“动作”选项卡中单击“记录”并执行任务... photoshop将记录下来,下次您再次执行此操作时,只需单击“播放”图标

Hope its helpful 希望对您有所帮助

If you have Photoshop CC you can generate image assets from Layers . 如果您具有Photoshop CC ,则可以从“ Layers生成图像资源

For example if you set this name to a Layer : 例如,如果将此名称设置为Layer

29px x 29px icon29x29.png, 40px x 40px icon40x40.png, 128px x 128px icon128x128.png

Will generates these image assets: 将生成以下图像资产:

  • icon29x29.png icon29x29.png
  • icon40x40.png icon40x40.png
  • icon128x128.png icon128x128.png

With these specific sizes. 具有这些特定尺寸。

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

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