| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Consistent use of LIST(APPEND over SET(
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This reverts commit a74909b9a43a46518cac18eefba8809e712e210e.
|
|
|
|
|
| |
We must unset the trueColor image after converting it; gdImageCopy() wont't
(rightly) do that for us.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|