saitoha / libsixel

A SIXEL encoder/decoder implementation derived from kmiya's sixel (https://github.com/saitoha/sixel).
MIT License
2.49k stars 83 forks source link

Keep compatibility #8

Closed saitoha closed 10 years ago

saitoha commented 10 years ago

COLOR_RGB888 had better be 3.

uobikiemukot commented 10 years ago

I agree. COLOR_RGB888 must be 3 for compatibility. And we need to rewrite arguments of sixel_dither_initialize() and sixel_encode() like this

diff --git a/converters/img2sixel.c b/converters/img2sixel.c index 0232b70..6b7b966 100644 --- a/converters/img2sixel.c +++ b/converters/img2sixel.c @@ -142,7 +142,7 @@ prepare_specified_palette(char const *mapfile, int reqcolors) if (dither == NULL) { return NULL; }

coveralls commented 10 years ago

Coverage Status

Coverage increased (+10.5%) when pulling ed1b1bb8271eeb4abac3cca6ddec0bf2f8bdb0a2 on fix-segfault-with-introducing-various-pixformat into 9d01eceaf1abd1f411f489f286a28ce42cc5f3c9 on feature-support-various-pixformat.

saitoha commented 10 years ago

ok, your additional patch will be merged into feature-support-various-pixformat