简体   繁体   English

如何使用imagemagick获得圆角,渐变抛光的iOS图标图像效果?

[英]How do you get the rounded corner, gradient-polish iOS icon image effect with imagemagick?

给定正方形图像,如何使用ImageMagick的工具获得iPhone图标效果?

I would use the same method iTunes does. 我将使用iTunes的相同方法。 Put a gloss overlay image onto the icon and then mask it. 在图标上放置一个光泽叠加图像,然后对其进行遮罩。 You can find both the gloss and mask images inside iTunes.app/Contents/Resources/iTunes.rsrc file (right click on iTunes icon and click Show package contents to get there). 您可以在iTunes.app/Contents/Resources/iTunes.rsrc文件中找到光泽图像和遮罩图像(右键单击iTunes图标,然后单击“显示包装内容”到达此处)。 You can use File Juicer to extract the images from this file. 您可以使用File Juicer从该文件中提取图像。

May refer to this tutorial from imagemagicks. 可以参考imagemagicks的本教程。 This technique uses gray canvas image to create masked lighting effect. 此技术使用灰色画布图像创建蒙版的照明效果。 This pretty much create iOS alike icon. 这几乎可以创建类似iOS的图标。 http://www.imagemagick.org/Usage/thumbnails/#badge_lighting http://www.imagemagick.org/用法/ thumbnails /#badge_lighting

Some time ago i used this: http://www.macupdate.com/app/mac/36477/iconifer 前段时间我使用了这个: http : //www.macupdate.com/app/mac/36477/iconifer

And found this code but its RMagic, maybe you can use it as a guide to port it. 并找到了此代码,但找到了它的RMagic,也许您可​​以将其用作移植它的指南。 http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=13140&start=0#p44179 http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=13140&start=0#p44179

Hope it helps 希望能帮助到你

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

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