Added extra check to fix issue with zero height.

This commit is contained in:
Dirk Lemstra 2017-12-22 02:09:45 +01:00
parent 90167902b9
commit e8df2aa190

View File

@ -369,6 +369,9 @@ magick_create_images( Write *write )
vips_image_get_int( write->im, VIPS_META_PAGE_HEIGHT, &height ) )
return( magick_create_image( write, write->im ) );
if( height == 0 )
return( magick_create_image( write, write->im ) );
for( int top=0; top < write->im->Ysize ; top+=height ) {
VipsImage *im;