sixteencolors / Pablo.Gallery

Ansi/Ascii/Rip/Image art gallery using the PabloDraw engine
MIT License
2 stars 0 forks source link

Optimize PNGs #13

Open lordscarlet opened 10 years ago

lordscarlet commented 10 years ago

Last I checked .net's rendering of PNG's was not particularly efficient.

cwensley commented 10 years ago

Actually, the thumbnails generated by this are much smaller than on the existing site.. by about half the size. However, .net can't generate 4-bit pngs, so the full-size images are much larger.

On that note, I'm only comparing the .png rendering in mono, I have no idea if ms.net generates larger .png files.

cwensley commented 10 years ago

oh and by the way, the thumbnails are almost twice as big as those on the current site, as it allows for retina displays.. and they are still much smaller.. (;

lordscarlet commented 10 years ago

Yeah, the 8-bit PNG's are the main issue. The current site doesn't optimize them either, I don't think. But after a quick search, I imagine something like http://stackoverflow.com/questions/7362976/managed-png-optimization-library-available would be good.

cwensley commented 10 years ago

eek, system.drawing only.. though that being said, I've forced pablo.gallery to use system.drawing for pablo for all platforms (as opposed to using gtk/cairo on linux, or cocoa on os x).

lordscarlet commented 10 years ago

There certainly may be better options. Or no options. I have no idea, but its certainly something to look into. Cloudflare may even optimize on their end.