Help with round corners and drop shadows.
Posted: 2009-03-14T15:42:46-07:00
Can anyone tell me what I'm doing wrong here? I have a convert command that used to work in an older version of IM, but is now broken on recent versions. I'm creating rounded edges with a drop shadow on a transparent background.
If I do two separate commands it works like so:
convert -size 150x113 xc:none -stroke none -draw "roundRectangle 5,5 148,111, 12,12" img_in.jpg -compose SrcIn -composite img_middle.png
and then
convert img_middle.png \( +clone -background black -shadow 80x4+3+3 \) +swap -background none -mosaic final.png
Can someone explain to me why the following, combined command will not work (I get a completely transparent image)?
convert -size 150x113 xc:none -stroke none -draw "roundRectangle 5,5 148,111, 12,12" img_in.jpg -compose SrcIn -composite \( +clone -background black -shadow 80x4+3+3 \) +swap -background none -mosaic final.png
Any help would me *most* appreciated. I've killed way too many days torturing myself over this.
Thanks!
Mike
mrubinsk@horde.org
If I do two separate commands it works like so:
convert -size 150x113 xc:none -stroke none -draw "roundRectangle 5,5 148,111, 12,12" img_in.jpg -compose SrcIn -composite img_middle.png
and then
convert img_middle.png \( +clone -background black -shadow 80x4+3+3 \) +swap -background none -mosaic final.png
Can someone explain to me why the following, combined command will not work (I get a completely transparent image)?
convert -size 150x113 xc:none -stroke none -draw "roundRectangle 5,5 148,111, 12,12" img_in.jpg -compose SrcIn -composite \( +clone -background black -shadow 80x4+3+3 \) +swap -background none -mosaic final.png
Any help would me *most* appreciated. I've killed way too many days torturing myself over this.
Thanks!
Mike
mrubinsk@horde.org