We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3834a9f commit 4e72334Copy full SHA for 4e72334
libvips/foreign/heifsave.c
@@ -545,6 +545,13 @@ vips_foreign_save_heif_build( VipsObject *object )
545
heif->page_height = vips_image_get_page_height( heif->image );
546
heif->n_pages = heif->image->Ysize / heif->page_height;
547
548
+ /* Apply libheif input limit of 32768x32768 to output.
549
+ */
550
+ if( heif->page_width > 32768 || heif->page_height > 32768 ) {
551
+ vips_error( "heifsave", _( "image too large" ) );
552
+ return( -1 );
553
+ }
554
+
555
/* Make a heif image the size of a page. We send sink_disc() output
556
* here and write a frame each time it fills.
557
*/
0 commit comments