parent
9c1003fbe6
commit
f92069b035
@ -601,7 +601,7 @@ vips_foreign_load_magick7_parse( VipsForeignLoadMagick7 *magick7,
|
||||
|
||||
/* So we can finally set the height.
|
||||
*/
|
||||
if( vips_object_argument_isset( VIPS_OBJECT( magick7 ), "n" ) ) {
|
||||
if( read->n_frames > 1 ) {
|
||||
vips_image_set_int( out, VIPS_META_PAGE_HEIGHT, out->Ysize );
|
||||
out->Ysize *= magick7->n_frames;
|
||||
}
|
||||
|
@ -519,8 +519,12 @@ read_header( Read *read, VipsImage *out )
|
||||
#endif /*DEBUG*/
|
||||
|
||||
if( flags & ANIMATION_FLAG ) {
|
||||
vips_image_set_int( out,
|
||||
VIPS_META_PAGE_HEIGHT, read->frame_height );
|
||||
/* Only set page-height if we have more than one page, or
|
||||
* this could accidentally turn into an animated image later.
|
||||
*/
|
||||
if( read->n > 1 )
|
||||
vips_image_set_int( out,
|
||||
VIPS_META_PAGE_HEIGHT, read->frame_height );
|
||||
|
||||
read->width = read->frame_width;
|
||||
read->height = read->n * read->frame_height;
|
||||
|
Loading…
Reference in New Issue
Block a user