spngsave: Don't shift indexed pixels (#3101)
This commit is contained in:
parent
e6198361e5
commit
982a835eed
@ -270,7 +270,7 @@ vips_foreign_save_spng_pack( VipsForeignSaveSpng *spng,
|
|||||||
VipsPel *q, VipsPel *p, size_t n )
|
VipsPel *q, VipsPel *p, size_t n )
|
||||||
{
|
{
|
||||||
int pixel_mask = 8 / spng->bitdepth - 1;
|
int pixel_mask = 8 / spng->bitdepth - 1;
|
||||||
int shift = 8 - spng->bitdepth;
|
int shift = spng->palette ? 0 : 8 - spng->bitdepth;
|
||||||
|
|
||||||
VipsPel bits;
|
VipsPel bits;
|
||||||
size_t x;
|
size_t x;
|
||||||
|
Loading…
Reference in New Issue
Block a user