From 3ed42149b94870108d6cc7de759e1435a4730848 Mon Sep 17 00:00:00 2001 From: Joakim Verona Date: Fri, 14 May 2010 10:19:30 +0200 Subject: [PATCH] initial support for supplying image count property for image bundles by imagemagick. --- src/image.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) ximg->data); } + + //TODO figure out imagecount here! + if (MagickGetNumberImages(image_wand) > 1) + img->data.lisp_val = Fcons (Qcount, + Fcons (make_number (MagickGetNumberImages(image_wand)), + img->data.lisp_val)); + + #ifdef COLOR_TABLE_SUPPORT /* Remember colors allocated for this image. */ img->colors = colors_in_color_table (&img->ncolors); -- 2.11.4.GIT