Re:BPG Image format
by ChrisFoster on Friday December 05, 2014 @09:45PM
(#8708163)
I think your page has a bug - the "original png" seems to be encoded in jpg! (The usual jpg artifacts are very visible around the edges.) Thanks for posting the extra example, the bgp looks very good indeed.
Re:BPG Image format
by justinmayer on Saturday December 06, 2014 @01:21PM
(#8709788)
I believe that's because PageSpeed is automatically converting the PNG to JPEG on-the-fly before serving the image to the browser, ostensibly for speed reasons. How ironic. ;^)
Re:BPG Image format
by dingdingdang on Friday December 05, 2014 @07:45PM
(#8707862)
Would love to have not just the source file but also the output files posted if you can be bothered (im fine with png screenshots if you can't be arsed with actual js setup)
Re:BPG Image format
by justinmayer on Friday December 05, 2014 @08:23PM
(#8707974)
Sure, no problem. I updated my comment above to include a link to all the relevant files. As you'll see, despite the significant differences in file size, there is very little discernible difference in image quality.
Re:BPG Image format
by dingdingdang on Monday December 08, 2014 @04:59AM
(#8715718)
Thanks a lot - my God this format has potential on some files!
Before I finished reading your reply, I was going to say "but someone just submitted a formula for libbpg!" Thank you, sir. :)
Re:BPG Image format
by justinmayer on Friday December 05, 2014 @08:21PM
(#8707970)
Most welcome! Glad to help out where I can.
"After making a few needed tweaks to get libbpg to compile on Mac OS X". What have you done?
I get "bpgdec.c:35:17: warning: png.h: No such file or directory" and lots of other errors.
http://justinmayer.com/bpg-test/
Size of PNG before conversion: 186K
Size after conversion to JPEG: 52K
Size after conversion to BPG: 9K
I took the liberty of submitting a Homebrew formula, so hopefully this will soon be a quick "brew install libbpg" away. (^_^)
https://github.com/Homebrew/homebrew/pull/34722