TheDiamondProject / Graphite

MIT License
16 stars 6 forks source link

General PICT improvements #49

Closed andrews05 closed 2 years ago

andrews05 commented 2 years ago

This is an output size optimisation for pict encoding that automatically switches to indexed mode when there are no more than 256 colours in the image. It is a little slower though (even for images with too many colours, mainly due to the clut search in set), so not sure if it should be opt-in? (Or if you're happy to have this in Graphite at all?)

There are some other improvements here though, including some from the QuickTime PR.

andrews05 commented 2 years ago

I discovered that Nova doesn't scale paletted images nicely (e.g. for shipyard thumbnails) so I removed the automatic indirect encoding. I've left the function in but it's currently unused. There's a bunch of other helpful fixes and improvements though, so would still be good to merge this.