phpThumb icon indicating copy to clipboard operation
phpThumb copied to clipboard

Force PNGs to be 8-bit

Open martbean opened this issue 2 years ago • 0 comments

I'm processing some logo files which are flat colours. If I convert them to PNG the files are always PNG-24 but ideally they should be PNG-8 as output files would be around a third of the size. Is there a way of forcing this? I've tried fltr[]=rcd|128 which partially works but results in a grey background, even though I'm setting bg=FFFFFF

The only workaround I've found for now is to use GIF instead, which isn't ideal. Any ideas?

martbean avatar Nov 23 '22 16:11 martbean