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/

The images from the "intermediate stages" seems be OK (pad_extent2.png & 
rounded_corners2.png)
(Got the same results if I don't saves pad_extent2.png & rounded_corners2)

With the last picture is something wrong
The Image with round corners is completely black
and the surface to be transparent is completely white

I can't see what is differ or what' s wrong. :-\


//Jan

Pete Whatever skrev:
> Hi Jan,
> Try this:
>
> convert -define jpeg:size=300x300 c:\temp\pic\hatching_orig.jpg
> -thumbnail "300x300>" -write c:\temp\pic\pad_extent.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_corners.png \
>  -background transparent -gravity center -extent 300x300 
> c:\temp\pic\Image1.gif
>
> If you don't need the intermediate files you can remove "-write 
> c:\temp\pic\pad_extent.png" and "-write c:\temp\pic\rounded_corners.png"
>  
> Best Wishes
> Pete
>
>
>
>       
>
>   

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to