How to have shadow in a .jpg [solved]
Posted: 2007-03-26T13:36:02-07:00
Hi all
v.6.3.3
I have some difficulties with shadow.
It works good with png, but I don't use it for thumbnails but for 640x480 sized pictures but the filesize increases very fast, some pictures make it over 1MB in png.
If I try flattening to jpg, the shadow just disappears and I'm having a grey area around my picture.
Here is the code snipplets:
convert in.jpg -size 800x600 -quality 90 -bordercolor \ white -border 20 -gravity center -extent 640x640 \ +repage -bordercolor grey -border 1 -flatten \
\( +clone -shadow 30x10+10+10 \) \
+swap -background none -flatten -depth 8 out.jpg
however it works using png as output, but not with jpg
any hints?
best regards and thanks
Patrick
v.6.3.3
I have some difficulties with shadow.
It works good with png, but I don't use it for thumbnails but for 640x480 sized pictures but the filesize increases very fast, some pictures make it over 1MB in png.
If I try flattening to jpg, the shadow just disappears and I'm having a grey area around my picture.
Here is the code snipplets:
convert in.jpg -size 800x600 -quality 90 -bordercolor \ white -border 20 -gravity center -extent 640x640 \ +repage -bordercolor grey -border 1 -flatten \
\( +clone -shadow 30x10+10+10 \) \
+swap -background none -flatten -depth 8 out.jpg
however it works using png as output, but not with jpg
any hints?
best regards and thanks
Patrick