Unix version with black border

infile="hatching_orig.jpg"
drawcmd=`convert $infile -define jpeg:size=300x300 -thumbnail "300x300>" \
-format "roundrectangle 1,1 %[fx:w+4],%[fx:h+4] 25,25" info:`
convert \( $infile -define jpeg:size=300x300 -thumbnail "300x300>" \
-matte -bordercolor none -border 3 \) \
\( +clone -alpha transparent -background none \
-fill white -stroke none -strokewidth 0 -draw "$drawcmd" \) \
-compose DstIn -composite \
\( +clone -alpha transparent -background none \
-fill none -stroke black -strokewidth 3 -draw "$drawcmd" \) \
-compose Over -composite thumbnail_rounded_border_in_one.png
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to