parent
9c1003fbe6
commit
f92069b035
@ -601,7 +601,7 @@ vips_foreign_load_magick7_parse( VipsForeignLoadMagick7 *magick7,
|
|||||||
|
|
||||||
/* So we can finally set the height.
|
/* 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 );
|
vips_image_set_int( out, VIPS_META_PAGE_HEIGHT, out->Ysize );
|
||||||
out->Ysize *= magick7->n_frames;
|
out->Ysize *= magick7->n_frames;
|
||||||
}
|
}
|
||||||
|
@ -519,6 +519,10 @@ read_header( Read *read, VipsImage *out )
|
|||||||
#endif /*DEBUG*/
|
#endif /*DEBUG*/
|
||||||
|
|
||||||
if( flags & ANIMATION_FLAG ) {
|
if( flags & ANIMATION_FLAG ) {
|
||||||
|
/* 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_image_set_int( out,
|
||||||
VIPS_META_PAGE_HEIGHT, read->frame_height );
|
VIPS_META_PAGE_HEIGHT, read->frame_height );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user