Skip to content

Commit

Permalink
Fix #304: test suite failure in gif/bug00006 [2.2.3]
Browse files Browse the repository at this point in the history
gdImageGif() converts to palette using GD_QUANT_DEFAULT which is
configuration dependend. To circumvent this we're converting to palette
ourselves, explicitly setting the desired quantization method.
  • Loading branch information
cmb69 committed Oct 11, 2016
1 parent ca2b34e commit 4a03b38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/gif/bug00006.c
Expand Up @@ -27,6 +27,10 @@ int main()
gdTestErrorMsg("Cannot open <%s> for writing\n", file);
return 1;
}

gdImageTrueColorToPaletteSetMethod(im, GD_QUANT_JQUANT, 0);
gdImageTrueColorToPalette(im, 1, 256);

gdImageGif(im,fp);
fclose(fp);

Expand Down

0 comments on commit 4a03b38

Please sign in to comment.