问题
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