Re:Zopfli Optimization: Literally Free Bandwidth
by Reedx on Saturday January 02, 2016 @05:21PM
(#10828274)
That's what I was thinking too, but they really want it to be pixel perfect in every browser, email, etc. They have a good in-depth discussion about all the options and pros/cons of each approach here:
https://meta.discourse.org/t/optimizing-letter-avatar-render...
Re:Zopfli Optimization: Literally Free Bandwidth
by kbuck on Saturday January 02, 2016 @04:37PM
(#10828076)
These are default (placeholder) avatars. Users can upload their own avatar image as well. They're serving PNGs so they don't have to deal with the case where users using default avatars get HTML output whereas users who have uploaded an avatar get an image inserted.
Re:Zopfli Optimization: Literally Free Bandwidth
by codinghorror on Saturday January 02, 2016 @05:10PM
(#10828237)
Also font and alignment issues cross browser can be brutal. There is a lot to be said for a tiny image that works everywhere, on any device.
Re:Zopfli Optimization: Literally Free Bandwidth
by qopp on Saturday January 02, 2016 @05:13PM
(#10828250)
What about an svg?
Re:Zopfli Optimization: Literally Free Bandwidth
by other_herbert on Saturday January 02, 2016 @05:47PM
(#10828376)
That wont work in email... I'm generating a usage graph (svg) that is emailed and the graph will not display in the client.. Must be opened in a browser
Re:Zopfli Optimization: Literally Free Bandwidth
by ZeroGravitas on Monday January 04, 2016 @07:31AM
(#10835219)
Seems like you could use an SVG avatar for clients that can handle it and fallback to PNG for email.
Re:Zopfli Optimization: Literally Free Bandwidth
by cfcef on Saturday January 02, 2016 @04:40PM
(#10828080)
See the comments: lots of tweaking and unreliability and not guaranteed to work in emails, apparently.
Why not a <div> with a border-radius & background color? Seems you could achieve the same thing without another HTTP request (1 for each unique avatar), no need to zopfli 45,000 unique files.