(see `image-type-available-p').")
(defvar image-format-suffixes
- '((image/x-icon "ico"))
+ '((image/x-rgb "rgb") (image/x-icon "ico"))
"An alist associating image types with file name suffixes.
This is used as a hint by the ImageMagick library when detecting
the type of image data (that does not have an associated file name).
status = MagickReadImage (image_wand, filename);
else
{
+ Lisp_Object lwidth = image_spec_value (img->spec, QCwidth, NULL);
+ Lisp_Object lheight = image_spec_value (img->spec, QCheight, NULL);
+
+ if (NATNUMP (lwidth) && NATNUMP (lheight))
+ {
+ MagickSetSize (image_wand, XFASTINT (lwidth), XFASTINT (lheight));
+ MagickSetDepth (image_wand, 8);
+ }
filename_hint = imagemagick_filename_hint (img->spec, hint_buffer);
MagickSetFilename (image_wand, filename_hint);
status = MagickReadImageBlob (image_wand, contents, size);