Merge branch '8.13'

This commit is contained in:
John Cupitt 2022-09-08 09:14:01 +01:00
commit 5d1e26255d
3 changed files with 7 additions and 6 deletions

View File

@ -16,6 +16,7 @@ master
5/9/22 started 8.13.2
- in dzsave, add add missing include directive for errno/EEXIST [kleisauke]
- fix 8 bit pallete PNG save [lovell]
24/7/22 started 8.13.1
- fix im7 feature detection in meson

View File

@ -145,9 +145,9 @@ vips_foreign_save_png_build( VipsObject *object )
png->bitdepth < 8 )
png->palette = TRUE;
/* Disable palettization for >8 bit save.
*/
if( png->bitdepth >= 8 )
/* Disable palettization for >8 bit save.
*/
if( png->bitdepth > 8 )
png->palette = FALSE;
if( vips__png_write_target( in, png->target,

View File

@ -613,9 +613,9 @@ vips_foreign_save_spng_build( VipsObject *object )
spng->bitdepth < 8 )
spng->palette = TRUE;
/* Disable palettization for >8 bit save.
*/
if( spng->bitdepth >= 8 )
/* Disable palettization for >8 bit save.
*/
if( spng->bitdepth > 8 )
spng->palette = FALSE;
if( vips_foreign_save_spng_write( spng, in ) ) {