3 ms·
That 750KB PNG can probably be a 50KB PNG. Even without resizing it compresses to less than half its size. https://duckdb.org/images/blog/duck_chewbacca.png ht
by wolf550e 4y ago
That 750KB PNG can probably be a 50KB PNG. Even without resizing it compresses to less than half its size.
https://duckdb.org/images/blog/duck_chewbacca.png https://duckdb.org/images/blog/duck_chewbacca.png
- 1egg0myegg0 4y agoThanks! Can you tell that my SQL-fu is stronger than my HTML-fu? :-) Much appreciated!
- andai 4y agoIn this case it should probably be a JPEG? (Unless it has a transparent background and the site responds to the user's dark-mode setting? :) Also, this image looks like it almost certainly was a JPEG, at some point!)
- tracker1 4y agoThe color palette is pretty limited, so using something that can have a specific/limited palette (say 48-64 color in this case) is probably going to have a better result than jpeg. Also, optimizing for display size would take it further still. Alpha transparency support is also a bonus for png over jpeg.