]> code.delx.au - gnu-emacs/blobdiff - src/image.c
Check for MagickAutoOrientImage
[gnu-emacs] / src / image.c
index e1b167de3d28d3078e45fb4ec6ea46d35f1e1679..f22394fb7cb02bd7843b34b83a3737b56333f9c6 100644 (file)
@@ -8560,6 +8560,7 @@ imagemagick_load_image (struct frame *f, struct image *img,
       return 0;
     }
 
+#ifdef HAVE_MAGICKAUTOORIENTIMAGE
   /* If no :rotation is explicitly specified, apply the automatic
      rotation from EXIF. */
   if (NILP (image_spec_value (img->spec, QCrotation, NULL)))
@@ -8569,6 +8570,7 @@ imagemagick_load_image (struct frame *f, struct image *img,
         DestroyMagickWand (image_wand);
         return 0;
       }
+#endif
 
   if (ino < 0 || ino >= MagickGetNumberImages (image_wand))
     {