More than 5 years have passed since last update.
gmを使ってPSDのサムネイルを作成する。
var gm = require('gm').subClass({ imageMagick: true });
gm("img.psd[0]").resize(128, 128).setFormat("png").write('./out.png', function(){ console.log("done"); });
img.psd[0]
とすると、各レイヤーが合成されたものが出力される。
[0]
を付けないと、各レイヤーそれぞれのサムネイルが出力される。
参考文献
http://paranoid360.blogspot.jp/2011/04/imagemagickpsd.html
Why not register and get more from Qiita?
- We will deliver articles that match you
By following users and tags, you can catch up information on technical fields that you are interested in as a whole
- you can read useful information later efficiently
By "stocking" the articles you like, you can search right away
Sign upLogin