summaryrefslogtreecommitdiff
path: root/tests/gdimagetruecolortopalette/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* tests: cmake: list appending instead of set(Andrew Burley2019-02-091-1/+1
| | | | Consistent use of LIST(APPEND over SET(
* Fix #307: GD_QUANT_NEUQUANT fails to unset trueColor flagChristoph M. Becker2016-09-211-0/+1
| | | | | | Before we copy the quantized palette image onto the original image, we have to mark the latter as palette image. We also have to free the allocated truecolor pixels; free_truecolor_image_data() does all that for us.
* Revert "Fix #307: GD_QUANT_NEUQUANT fails to unset trueColor flag"Christoph M. Becker2016-09-211-1/+0
| | | | This reverts commit a74909b9a43a46518cac18eefba8809e712e210e.
* Fix #307: GD_QUANT_NEUQUANT fails to unset trueColor flagChristoph M. Becker2016-09-211-0/+1
| | | | | We must unset the trueColor image after converting it; gdImageCopy() wont't (rightly) do that for us.
* Fix PHP bug #67325: imagetruecolortopalette: white is duplicated in paletteChristoph M. Becker2016-09-031-0/+6
| | | | | | | | | gdImageTrueColorToPalette() is sometimes wasteful by putting multiple white color entries into the palette. This is caused by an obvious typo, where to avoid a division by zero when `total` is zero, `count` is checked instead of `total`. We fix this issue, to improve the quality of the color quantization.
* php bug 72519, invalid color index for transparent color can lead to OOBPierre Joye2016-07-191-0/+5