Forums / Developer / Imagemagick dst-over problem

Imagemagick dst-over problem

Author Message

Luis Micunco

Friday 12 June 2009 2:45:06 am

Hi.
Im trying to make a filter in image.ini to overlay a tiny logo over the original image, then resize the resulted image,

I followed this article from Ezpedia
http://ezpedia.org/ez/rounded_corners_on_images

[ImageMagick]
Filters[]=test=-compose dst-over -composite -gravity NorthWest ./share/icons/crystal/32x32/actions/identity.png

[test]
Reference=
Filters[]=test=

The identity.png image overlays correctly over the original image. The problem is that the resulted image automatically crops to the identity.png image size (38x37).

I tried to use resize but with no luck, it resizes the resulted image, i think because identity.png is already overlayed. this is what i get.

http://img20.imageshack.us/i/resultg.jpg/

Thanks everyone.