Skip to content

Commit

Permalink
Change gifDither range back to 0~10
Browse files Browse the repository at this point in the history
  • Loading branch information
n0vad3v committed Mar 18, 2024
1 parent 455c296 commit 469dbeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vips/foreign.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ int set_magicksave_options(VipsOperation *operation, SaveParams *params) {
int set_gifsave_options(VipsOperation *operation, SaveParams *params) {
int ret = 0;
// See for argument values: https://www.libvips.org/API/current/VipsForeignSave.html#vips-gifsave
if (params->gifDither > 1 && params->gifDither <= 10) {
if (params->gifDither > 0.0 && params->gifDither <= 10) {
ret = vips_object_set(VIPS_OBJECT(operation), "dither", params->gifDither, NULL);
}
if (params->gifEffort >= 1 && params->gifEffort <= 10) {
Expand Down

0 comments on commit 469dbeb

Please sign in to comment.