fix page select in magickload

need to set ->scenes as well
This commit is contained in:
John Cupitt 2016-02-18 14:55:53 +00:00
parent 0b263f7255
commit 307895eb41

View File

@ -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