jart / cosmopolitan

build-once run-anywhere c library
ISC License
18.36k stars 630 forks source link

Honeybadger image alpha fix #33

Closed nicholatian closed 3 years ago

nicholatian commented 3 years ago

Not sure where you keep the website and such maintained, but I noticed the honeybadger had some tearing at the edges due to the lack of a full 8-bit alpha channel. The PNG is 8-bit indexed, so I took it into Photoshop and fixed the edges, saving it as a 24-bit PNG. The size difference is less than double, but it’s still only 14 KB so I figured it’s still plenty small enough to be worth changing. diff

here is the new PNG.

jart commented 3 years ago

Thanks Alexander. Your photoshop-fu is pretty good. I didn't realize that saving as PNG-8 caused transparency tearing. I have a vector version of the honey badger so I scaled a new PNG-24 from that. After running it through optipng it turned out to be only 11kb. Here's a 1920x986 version which is surprisingly enough only 20kb:

image

Think I should set up a CafePress and start selling Cosmopolitan honey badger swag?