putting-the-you-in-cpu
putting-the-you-in-cpu copied to clipboard
Optimize PNG and JPEG Images
This is related to issue #36, but with some differences:
- This also optimizes JPEG image(s), including one PNG image that was a JPEG image, which is reconverted to JPEG.
- PNG images with transparent background are filled with the same color used in the website since indexed color does not properly support alpha channel (as far as I know).
- PNG images have their Total Unique Colors (TUCs) reduced to a number following this calculation: ((TUC/8)+(TUC/9))/2 instead of the reduction factor said in the aforementioned issue.
With this optimization, the file size of the entire library of images from chapters 0 to 7 are reduced from ~3MBs to ~700KBs.
Originals are included inside the new "originals" directory.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
putting-the-you-in-cpu | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 19, 2023 8:13am |