Skip to content

Commit

Permalink
bug: pngimage.c: Disable the check on interlace_method if WRITE_INTER…
Browse files Browse the repository at this point in the history
…LACE is not supported.

Inside libpng if interlacing a PNG is disabled libpng silently removes
it.  This updates pngimage.c to not check the interlace in the resultant
image, other behavior is still checked.

Signed-off-by: John Bowler <jbowler@acm.org>
  • Loading branch information
jbowler committed Oct 14, 2024
1 parent f45531c commit 0c54782
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contrib/libtests/pngimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,12 @@ compare_read(struct display *dp, int applied_transforms)
C(height);
C(bit_depth);
C(color_type);
C(interlace_method);
# ifdef PNG_WRITE_INTERLACING_SUPPORTED
/* If write interlace has been disabled the PNG is still written
* correctly but as a simple, not interlacedd, PNG.
*/
C(interlace_method);
# endif
C(compression_method);
C(filter_method);

Expand Down

0 comments on commit 0c54782

Please sign in to comment.