Re: Reduce the number of commands
Fred Weinhaus <[email protected]>
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <p06240801c77f929136e8@[192.168.1.2]> |
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