label=`convert TestLayers.psd[1] -verbose info: | grep "label:" | cut -d: -f 2 | cut -d\ -f2`
echo $label
TestLayer
you just need to find out how many layers
numlayer=`convert TestLayers.psd -format "%[scenes]" info: | head -n 1`
echo $numlayers
3
Then loop through each layer in a script and get the label name and use that in your convert
convert TestLayers.psd[1] TestLayers-${label}.png
https://www.imagemagick.org/discourse-server/viewtopic.php?t=16072
Font utf8 (japanese) not work.
echo $label
TestLayer
you just need to find out how many layers
numlayer=`convert TestLayers.psd -format "%[scenes]" info: | head -n 1`
echo $numlayers
3
Then loop through each layer in a script and get the label name and use that in your convert
convert TestLayers.psd[1] TestLayers-${label}.png
https://www.imagemagick.org/discourse-server/viewtopic.php?t=16072
Font utf8 (japanese) not work.
Comments
Post a Comment