And it’s all thanks to Plastics. And centuries of rotating very large germans. But seriously, this is good stuff.
I wanted a reasonably sized photographic image with a 24-bit alpha channel. So I used a JPEG for what JPEGs are good for and a PNG for what PNGs are good for…
I combined them using an HTML5
canvaselement and then inserted into the DOM. The results look the same as using a normal 24-bit PNG but are one-half to one-sixth the size. In one case we got a 573KB 24-bit PNG down to a 49KB JPEG with a 4KB PNG alpha-mask!
Check out jackadam’s website for more neato (in the Roger Wilco sense of the word) solutions to fun (in the (Gene Wilder version of) Willy Wonka sense of it) problems.
1 year ago