* src/image.c (image_compute_scale): Define even if
! (defined HAVE_IMAGEMAGICK || defined HAVE_NATIVE_TRANSFORMS),
because it is always used. Needed in platforms that lack all
those image libraries.
(cherry picked from commit
fb434b85167d28e6739c8fc6fa80970011b79a0d)
}
return -1;
}
+#endif
/* Calculate the scale of the image. IMG may be null as it is only
required when creating an image, and this function is called from
return scale;
}
+#if defined HAVE_IMAGEMAGICK || defined HAVE_NATIVE_TRANSFORMS
/* Compute the desired size of an image with native size WIDTH x HEIGHT,
which is to be displayed on F. Use IMG to deduce the size. Store
the desired size into *D_WIDTH x *D_HEIGHT. Store -1 x -1 if the