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]]Im Auftrag von
> [email protected]
> Gesendet: Donnerstag, 6. September 2007 20:32
> An: [email protected]
> 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).
>
> [...]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.