+2011-11-24 Juri Linkov <juri@jurta.org>
+
+ * image.c (imagemagick_load_image): Move `MagickSetResolution' down
+ after the `MagickPingImage' call. (Bug#10112)
+
2011-11-23 Chong Yidong <cyd@gnu.org>
* window.c (Fcoordinates_in_window_p): Accept only live windows.
image = image_spec_value (img->spec, QCindex, NULL);
ino = INTEGERP (image) ? XFASTINT (image) : 0;
ping_wand = NewMagickWand ();
- MagickSetResolution (ping_wand, 2, 2);
+
if (filename != NULL)
{
status = MagickPingImage (ping_wand, filename);
status = MagickPingImageBlob (ping_wand, contents, size);
}
+ MagickSetResolution (ping_wand, 2, 2);
+
if (! (0 <= ino && ino < MagickGetNumberImages (ping_wand)))
{
image_error ("Invalid image number `%s' in image `%s'",