]> git.eshelyaron.com Git - emacs.git/commitdiff
initial support for supplying image count property for image bundles
authorJoakim Verona <joakim@verona.se>
Fri, 14 May 2010 08:19:30 +0000 (10:19 +0200)
committerJoakim Verona <joakim@verona.se>
Fri, 14 May 2010 08:19:30 +0000 (10:19 +0200)
by imagemagick.

src/image.c

index 5865d7be00a490a534a52dd9ddc1c33ae5f6b2aa..1bc58db57b8b484ce4a2bbb63df6e2ab858d1c99 100644 (file)
@@ -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);