I have an "jpg" image with size: 600x600pixels, Resolution: 150 dpi
the image get rounded corners with the command. It's OK!
The final image is a ". gif" file (.jpg doesn't work)
The size is 120x120 - OK!
But I can't see the result resolution in IrfanView but the size is the same 120x120pixels
This command works for me (It's only the main code)
Code: Select all
FileIn = 61141_a.jpg
FileOut = 61141_a.gif
PicSize = 120x120 ; pic size out
RCPic = 15 ; rounded corner
%ImageMagick%\convert
-define "jpeg:size=%PicSize%" %FileIn%
-thumbnail "%PicSize%>"
( +clone -threshold -1
-draw "fill black polygon 0,0 0,%RCPic% %RCPic%,0
fill white circle %RCPic%,%RCPic% %RCPic%,0"
( +clone -flip ) -compose Multiply -composite
( +clone -flop ) -compose Multiply -composite )
+matte -compose CopyOpacity -composite -background transparent
-gravity center -compose Over -extent %PicSize% %FileOut%
Where can I put in this information without destroy something else?
Code: Select all
-density 30x30 -units pixelspercentimeter (or pixelsperinch)