File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -145,9 +145,9 @@ vips_foreign_save_png_build( VipsObject *object )
145
145
png -> bitdepth < 8 )
146
146
png -> palette = TRUE;
147
147
148
- /* Disable palettization for >8 bit save.
149
- */
150
- if ( png -> bitdepth >= 8 )
148
+ /* Disable palettization for >8 bit save.
149
+ */
150
+ if ( png -> bitdepth > 8 )
151
151
png -> palette = FALSE;
152
152
153
153
if ( vips__png_write_target ( in , png -> target ,
Original file line number Diff line number Diff line change @@ -613,9 +613,9 @@ vips_foreign_save_spng_build( VipsObject *object )
613
613
spng -> bitdepth < 8 )
614
614
spng -> palette = TRUE;
615
615
616
- /* Disable palettization for >8 bit save.
617
- */
618
- if ( spng -> bitdepth >= 8 )
616
+ /* Disable palettization for >8 bit save.
617
+ */
618
+ if ( spng -> bitdepth > 8 )
619
619
spng -> palette = FALSE;
620
620
621
621
if ( vips_foreign_save_spng_write ( spng , in ) ) {
You can’t perform that action at this time.
0 commit comments