Problem merging 2 convert commands...
Posted: 2009-08-11T05:05:58-07:00
Hello,
I'm looking for a new signatures for my photos and I made a news script based on what I saw on those 'so helpful' forums and I would like to improve my script.
Here is the code:
It produces such résults:
I'm using 2 commands 'convert' to do what I want as you can see and I'm wondering if it is possible to 'merge' them and have the same result of course !
And also do you think it's possible also to use mogrify instead of convert ?
Thanks !
I'm looking for a new signatures for my photos and I made a news script based on what I saw on those 'so helpful' forums and I would like to improve my script.
Here is the code:
Code: Select all
convert $IMAGE \( +clone -blur 0x10 +level 20%,100% -fill black -colorize 30% \) \
\( +clone -gamma 0 -shave "$BORDERWIDTH"x"$BORDERWIDTH" \
-bordercolor white -border "$BORDERWIDTH"x"$BORDERWIDTH" \) \
-composite \
\( +clone -gamma 0 -shave "$BORDERWIDTH"x"$BORDERWIDTH" \
-bordercolor white -border 1x1 \
-bordercolor black -border "$tmpw"x"$tmpw" \) \
-compose screen -composite \
$IMAGE
convert -background '#0000' -fill white -gravity East -size ${width}x$RECTWIDTH \
-font $FONT -strokewidth $STROKEWIDTH -pointsize $POINTSIZE caption:"`echo $CAPTION`" \
+size $IMAGE +swap -gravity south -composite $IMAGE
I'm using 2 commands 'convert' to do what I want as you can see and I'm wondering if it is possible to 'merge' them and have the same result of course !
And also do you think it's possible also to use mogrify instead of convert ?
Thanks !