From 307895eb414abf599c2fbcfea4c5c411f79337d6 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 18 Feb 2016 14:55:53 +0000 Subject: [PATCH] fix page select in magickload need to set ->scenes as well --- libvips/foreign/magick2vips.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libvips/foreign/magick2vips.c b/libvips/foreign/magick2vips.c index a962cea8..768b4447 100644 --- a/libvips/foreign/magick2vips.c +++ b/libvips/foreign/magick2vips.c @@ -217,13 +217,16 @@ read_new( const char *filename, VipsImage *im, #endif /*HAVE_SETIMAGEOPTION*/ if( !all_frames ) { + char page[256]; + /* Just pick a specific page. * * I can't find docs for these fields, but this seems to work. */ read->image_info->scene = read->page; read->image_info->number_scenes = 1; - read->image_info->adjoin = MagickTrue; + vips_snprintf( page, 256, "%d", read->page ); + read->image_info->scenes = strdup( page ); } #ifdef DEBUG