Bug in the convert-command or bad image?
Posted: 2009-03-25T02:20:26-07:00
Hello,
I am playing with my Gscreendump app and I found an image that causes ImageMagick to crash.
These are the commands I run:
# Get the base image
wget http://www.edbl.no/tmp/header.gif
# Convert it to png
convert header.gif image1.png
# Rotate 45 degrees
convert image1.png -rotate 45 image2.png
Error:
convert: magick/memory.c:452: CopyMagickMemory: Assertion `destination != (void *) ((void *)0)' failed.
The same error happens when I call
MagickRotateImage(image, background, angle);
from c code. The code is here... [look for magickwand_rotate_image() function].
---------------
I generated the image1.png by drag & dropping the "header.gif" image to my Gscreendump application.
Read about the amazing Gscreendump here
http://ubuntuforums.org/showthread.php?t=1096860
and
http://code.google.com/p/gscreendump/
You can save_as or import images to any format (PDF files, PNG, etc....), thanks to ImageMagick.
---------------
EDIT: The operatingsystem where this error occurs is
cat /etc/*issue*
Ubuntu Linux 9.04 (64bits) Jaunty Jackalope (development branch, alpha6...)
convert -version
Version: ImageMagick 6.4.5 2009-01-22 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
I also sent this message to Ubuntuforums.org. See post #6953541.
---------------
EDIT: The same test on 64bits Ubuntu 8.10.
The above commands work well (without errors) in 64bits Ubuntu 8.10. The ImageMagick version is
mogrify -version
Version: ImageMagick 6.3.7 08/21/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
I am playing with my Gscreendump app and I found an image that causes ImageMagick to crash.
These are the commands I run:
# Get the base image
wget http://www.edbl.no/tmp/header.gif
# Convert it to png
convert header.gif image1.png
# Rotate 45 degrees
convert image1.png -rotate 45 image2.png
Error:
convert: magick/memory.c:452: CopyMagickMemory: Assertion `destination != (void *) ((void *)0)' failed.
The same error happens when I call
MagickRotateImage(image, background, angle);
from c code. The code is here... [look for magickwand_rotate_image() function].
---------------
I generated the image1.png by drag & dropping the "header.gif" image to my Gscreendump application.
Read about the amazing Gscreendump here
http://ubuntuforums.org/showthread.php?t=1096860
and
http://code.google.com/p/gscreendump/
You can save_as or import images to any format (PDF files, PNG, etc....), thanks to ImageMagick.
---------------
EDIT: The operatingsystem where this error occurs is
cat /etc/*issue*
Ubuntu Linux 9.04 (64bits) Jaunty Jackalope (development branch, alpha6...)
convert -version
Version: ImageMagick 6.4.5 2009-01-22 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
I also sent this message to Ubuntuforums.org. See post #6953541.
---------------
EDIT: The same test on 64bits Ubuntu 8.10.
The above commands work well (without errors) in 64bits Ubuntu 8.10. The ImageMagick version is
mogrify -version
Version: ImageMagick 6.3.7 08/21/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC