From 8e7e3d54f6202be3dbff34fd822d259d394fa318 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 7 Feb 2016 10:37:31 -0800 Subject: [PATCH 1/2] imagemagick images accept integer :rotation specs * src/image.c (imagemagick_load_image): previously we only accepted floating-point specifications, even though the most common rotations are 90, 180 and 270. Now integers work too. --- src/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index 144fe30..133d696 100644 --- a/src/image.c +++ b/src/image.c @@ -8646,7 +8646,7 @@ imagemagick_load_image (struct frame *f, struct image *img, image_spec_value (img->spec, QCbackground, NULL); if (!STRINGP (specified_bg). */ value = image_spec_value (img->spec, QCrotation, NULL); - if (FLOATP (value)) + if (FLOATP (value) || INTEGERP (value)) { rotation = extract_float (value); status = MagickRotateImage (image_wand, bg_wand, rotation); -- 2.1.4