aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona2010-05-14 10:19:30 +0200
committerJoakim Verona2010-05-14 10:19:30 +0200
commit3ed42149b94870108d6cc7de759e1435a4730848 (patch)
treef05eafbbad4410aa73919389e9ea6233d89ec37e /src
parentef30d1ad3e9abe32001d8d863ae7314ca2a636f2 (diff)
downloademacs-3ed42149b94870108d6cc7de759e1435a4730848.tar.gz
emacs-3ed42149b94870108d6cc7de759e1435a4730848.zip
initial support for supplying image count property for image bundles
by imagemagick.
Diffstat (limited to 'src')
-rw-r--r--src/image.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c
index 5865d7be00a..1bc58db57b8 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7926,6 +7926,14 @@ imagemagick_load_image (f, img, contents, size, filename)
7926 ximg->data); 7926 ximg->data);
7927 } 7927 }
7928 7928
7929
7930 //TODO figure out imagecount here!
7931 if (MagickGetNumberImages(image_wand) > 1)
7932 img->data.lisp_val = Fcons (Qcount,
7933 Fcons (make_number (MagickGetNumberImages(image_wand)),
7934 img->data.lisp_val));
7935
7936
7929#ifdef COLOR_TABLE_SUPPORT 7937#ifdef COLOR_TABLE_SUPPORT
7930 /* Remember colors allocated for this image. */ 7938 /* Remember colors allocated for this image. */
7931 img->colors = colors_in_color_table (&img->ncolors); 7939 img->colors = colors_in_color_table (&img->ncolors);