Need help with merging images and adding drop shadow
Posted: 2015-05-04T21:10:53-07:00
I've created a working script that does this separately, but no luck trying to have it do it in 1 command.
What I'm trying to do is something like this with no luck:
Update, Ater a few more tries my working solution:
Code: Select all
convert 1.png \
\( +clone -background gray10 -shadow 80x14+25+25 \) +swap \
-background none -layers merge +repage 1m.png
Code: Select all
convert \
-page +2400+0 1m.png \
-page +2000+0 2m.png \
-page +1600+0 3m.png \
-page +1200+0 4m.png \
-page +800+0 5m.png \
-page +400+0 6m.png \
-page +0+0 7m.png \
-background none -layers merge +repage layerstest.png
What I'm trying to do is something like this with no luck:
Code: Select all
convert \
-page +2400+0 1m.png \
\( +clone -background gray45 -shadow 10x30+0+0 \) +swap -background none -layers merge \
-page +2000+0 2m.png \
\( +clone -background gray45 -shadow 10x30+0+0 \) +swap -background none -layers merge \
-page +1600+0 3m.png \
\( +clone -background gray45 -shadow 10x30+0+0 \) +swap -background none -layers merge \
-page +1200+0 4m.png \
-page +800+0 5m.png \
-page +400+0 6m.png \
-page +0+0 7m.png \
-background none -layers merge +repage layerstest.png
Update, Ater a few more tries my working solution:
Code: Select all
convert \
-page +2400+0 1m.png \
\( +clone -background gray10 -shadow 80x14+25+25 \) +swap -background none \
-page +2000+0 2m.png \
\( +clone -background gray10 -shadow 80x14+25+25 \) +swap -background none \
-page +1600+0 3m.png \
\( +clone -background gray10 -shadow 80x14+25+25 \) +swap -background none \
-page +1200+0 4m.png \
\( +clone -background gray10 -shadow 80x14+25+25 \) +swap -background none \
-page +800+0 5m.png \
\( +clone -background gray10 -shadow 80x14+25+25 \) +swap -background none \
-page +400+0 6m.png \
\( +clone -background gray10 -shadow 80x14+25+25 \) +swap -background none \
-page +0+0 7m.png \
\( +clone -background gray10 -shadow 80x14+25+25 \) +swap -background none \
-background none -layers merge +repage layerstest.png