>Hi! >(Oops, what easy to merge commands) > >But something don' t work for me. > >Made a translation into DOS / Windows, and here is the result: >(I have left the images from the "intermediate stage" for control) > >/convert -define jpeg:size=300x300 c:\temp\pic\hatching_orig.jpg >-thumbnail "300x300>" -write c:\temp\pic\pad_extent2.png ^ > ( +clone -threshold -1 -draw "fill black polygon 0,0 0,25 25,0 fill >white circle 25,25 25,0" ^ > ( +clone -flip ) -compose Multiply -composite ( +clone -flop ) ^ > -compose Multiply -composite ) +matte -compose CopyOpacity -composite >-write c:\temp\pic\rounded_corners2.png ^ > -background transparent -gravity center -extent 300x300 >c:\temp\pic\Image2.gif/ >
You did not use my commands correctly. Note you must convert this to Windows correctly and use it as I have. drawcmd=`convert $infile -define jpeg:size=300x300 -thumbnail "300x300>" \ -format "roundrectangle 1,1 %[fx:w+4],%[fx:h+4] 25,25" info:` Note 1,1 %[fx:w+4],%[fx:h+4] 25,25 is not the same as your code. I am computing the actual image size after reducing it and adding 4. This must be done separately as you don't know the exact size of the resulting thumbnail as it won't necessarily be 300x300. Then you are using circles and polygons and I was using roundrectangle to cut the corners. My code was a variant of one Anthony made at http://www.imagemagick.org/Usage/thumbnails/#rounded_border I just converted his MVG file to a string, drawcmd. Hope that helps Fred _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
