Photoshop export gradient ( .grd files )

↘锁芯ラ 提交于 2021-01-27 04:26:46

问题


I'm trying to write a tool for converting photoshop gradients to css gradients using sass/compass. From what I've read the .grd is a proprietary format for which documentation is not available. Would the built in scripting be able to get at this info?

EDIT: here is a link to the scripting docs (I couldn't find anything)

EDIT 2: http://www.tonton-pixel.com/blog/photoshop-scripting/json-sample-scripts/parse-gradients-file/


回答1:


If you don't mind the command-line, then cptutils can do this. If not, then this online version may do what you want.




回答2:


Been searching for a while to find something for this. All I came up with is http://csshat.com Which is awesome in it's own right.




回答3:


http://www.gradientapp.com/

its a great tool for creating css gradients




回答4:


Just use the gradient on an object and get the hexadecimal value of the polarities.

I do not see the advantage of the tool you're describing. However, see if this link helps. Found in a related article how to read .grd file.



来源:https://stackoverflow.com/questions/7914843/photoshop-export-gradient-grd-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!