enable interlace transform when reading png (#823)

master
Brett 2022-02-07 18:57:24 +13:00 committed by GitHub
parent 09d5a6ad83
commit 5c8d8d1159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -415,6 +415,11 @@ BGD_DECLARE(gdImagePtr) gdImageCreateFromPngCtx (gdIOCtx * infile)
goto error;
}
/* enable the interlace transform if supported */
#ifdef PNG_READ_INTERLACING_SUPPORTED
(void)png_set_interlace_handling(png_ptr);
#endif
png_read_update_info (png_ptr, info_ptr);
/* allocate space for the PNG image data */