I searched the web for a few days, but found no solution for my problem:
I have several Photohop images with an embedded path like
this one.
From this image I want to
* extract the path
* create drop shadow from path in 100x100
* composite with this watermark
* save as jpg with white background, watermark but without shadow in 450x450
* save as jpg with white background, watermark and drop shadow in 100x100
I tried a lot and it seems that there are two ways I have to arrange cleverly:
The first example gave me right-sized jpgs with white background and watermark (but no drop shadow)
Code: Select all
convert -size 450x450 xc:white -gravity center test.psd[1] -composite watermark.png -composite -write Big.jpg -resize 100x100 -write small.jpg
Code: Select all
convert -verbose test.psd[1] \( +clone -background red -shadow 60x3+10+10 \) +swap -background white -flatten Big.jpg
When I try to combine those two convert calls I get totally messed images.
Can anyone give me a hint or help me with some useful page?
Thanks in advance
AR