In the file "magick/draw.c"
in the function "MagickBooleanType DrawPrimitive(Image *image, const DrawInfo 
*draw_info,const PrimitiveInfo *primitive_info)"
for the case "ImagePrimitive"
removing the test (ExpandAffine(&affine) != 1.0), solves the problem:

      if ( /* (ExpandAffine(&affine) != 1.0) && */
          (draw_info->compose == OverCompositeOp))
        (void) DrawAffineImage(image,composite_image,&affine);
      else
        (void) CompositeImage(image,draw_info->compose,composite_image,
          geometry.x,geometry.y);

Cheers,
Thomas Stegemann

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag von
> [EMAIL PROTECTED]
> Gesendet: Donnerstag, 6. September 2007 20:32
> An: magick-developers@imagemagick.org
> Betreff: [magick-developers] SVG: rotate image with a multiple of 90
> 
> 
> In ImageMagick 6.3.5 (I have tested 6.3.5-4, 6.3.5-6, 
> 6.3.5-8) images inside svgs are not rotated correctly.
> 
> In the following example the rectangle from "rect" will be 
> rotated, but not the rectangle drawn with "image".
> With old versions of ImageMagick (I have tested 6.3.3-10 and 
> older versions) both rectangles are rotated.
> Angles that are not a multiple of 90 are handled correct (I 
> have checked 45 and 90.001).
> 
> [...]
> 

_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to