adjust GIF alpha threshold
see https://github.com/libvips/libvips/discussions/2604
This commit is contained in:
parent
d3f77e4433
commit
f75b3c1ee9
@ -6,6 +6,7 @@
|
||||
- change default frame delay for GIFs from 1s to 0.1s
|
||||
- remove stray trailing comma from iiif3 dirnames [whalehub]
|
||||
- fix TTF load [chregu]
|
||||
- revise GIF save alpha threshold [jfcalvo]
|
||||
|
||||
21/11/21 started 8.12.1
|
||||
- fix insert [chregu]
|
||||
|
@ -188,7 +188,7 @@ vips_foreign_save_cgif_write_frame( VipsForeignSaveCgif *cgif )
|
||||
*/
|
||||
p = frame_bytes;
|
||||
for( i = 0; i < n_pels; i++ ) {
|
||||
p[3] = p[3] > 128 ? 255 : 0;
|
||||
p[3] = p[3] >= 128 ? 255 : 0;
|
||||
p += 4;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user