AW: [magick-developers] SVG: rotate image with a multiple of 90
Thomas.Stegemann at materna.de
Thomas.Stegemann at materna.de
Tue Sep 11 10:06:27 PDT 2007
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: magick-developers-bounces at imagemagick.org
> [mailto:magick-developers-bounces at imagemagick.org]Im Auftrag von
> Thomas.Stegemann at materna.de
> Gesendet: Donnerstag, 6. September 2007 20:32
> An: magick-developers at 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).
>
> [...]
>
More information about the Magick-developers
mailing list