Yet Another Image Format: Google's "WebP"

Discuss various technical topics not related to Mozilla.
Post Reply
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Yet Another Image Format: Google's "WebP"

Post by patrickjdempsey »

Paint Shop Pro and Photoshop will both save or export files to dozens and dozens of formats not supported by any web browser. I really don't get why a web browser should support a format that you can't save images into yet. The cart isn't just before the horse, the cart got it's own motor and ran over the horse.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
User avatar
bat999
Posts: 40
Joined: September 10th, 2010, 3:30 pm
Location: UK

Re: Yet Another Image Format: Google's "WebP"

Post by bat999 »

The pre-compiled binary webpconv program is only for 64 bit Linux.
I've compiled the 32 bit version.
It's not difficult, the instructions are on the website
here:- http://code.google.com/speed/webp/download.html
It runs OK on Ubuntu Karmic. 8-)
Gusar
Posts: 205
Joined: March 17th, 2006, 1:52 pm

Re: Yet Another Image Format: Google's "WebP"

Post by Gusar »

maxst wrote:People wouldn't be looking for JPEG alternatives then

Are they? Wasn't really my impression. I mean, if they did, JPEG XR would be gaining traction.
The thing is, for lossless there's PNG, and for lossy jpeg at low compression (quality 85-90) produces a pic without visible artifacts and seems to be small enough for people. Maybe I'm wrong, it's just my impression. Maybe there are other reasons why no new format gained traction, ubiquity of jpeg, inertia, people don't know about JPEG XR (to be honest, I didn't either until this webp thing started), something.
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Yet Another Image Format: Google's "WebP"

Post by patrickjdempsey »

The worst problem as I see it isn't even individuals. It's websites that force horrible levels of compression for JPG's, or convert PNG's to JPG's and then do horrible levels of compression, or resize your image and use monstrously terrible resizing computation. MySpace and Facebook are probably the two biggest offenders but I'm sure there are MANY other services that trash image quality for the sake of bandwidth and storage.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
maxst
Posts: 112
Joined: February 11th, 2010, 5:04 am

Re: Yet Another Image Format: Google's "WebP"

Post by maxst »

Gusar wrote:Are they? Wasn't really my impression. I mean, if they did, JPEG XR would be gaining traction.


In some special cases, JPEG alternatives are used in real projects. For example, NASA lets you download very hi-resolution images from Mars only as .jp2 files. Apparently they need some of JPEG 2000 features that are not available in regular JPEG.

And JPEG with alpha channel is every webmaster's dream. People are still bitter that Firefox lost JNG support.
User avatar
Omega X
Posts: 8225
Joined: October 18th, 2007, 2:38 pm
Location: A Parallel Dimension...

Re: Yet Another Image Format: Google's "WebP"

Post by Omega X »

patrickjdempsey wrote:Paint Shop Pro and Photoshop will both save or export files to dozens and dozens of formats not supported by any web browser. I really don't get why a web browser should support a format that you can't save images into yet. The cart isn't just before the horse, the cart got it's own motor and ran over the horse.


I don't know about PSP, but Photoshop will accept plugins to save in new formats.
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Yet Another Image Format: Google's "WebP"

Post by patrickjdempsey »

I know I'm using a Ps plugin to export PNG files from PSP, but I'm not sure if my antiquated version (that I need for vector graphics) will be compatible with newer plugins.
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
maxst
Posts: 112
Joined: February 11th, 2010, 5:04 am

Re: Yet Another Image Format: Google's "WebP"

Post by maxst »

Google told me the red pixelization problem can be fixed, they promised better chroma upsampling in the decoder:

http://code.google.com/p/webp/issues/detail?id=14#c0
User avatar
bat999
Posts: 40
Joined: September 10th, 2010, 3:30 pm
Location: UK

Re: Yet Another Image Format: Google's "WebP"

Post by bat999 »

Hi
It's possible to display a webp image by making it into a 1-frame webm video.
So the image displays OK with Firefox-4 but doesn't display with Firefox-3.6.9.
A demo is here:- http://antimatter15.github.com/weppy/demo.html
User avatar
Frenzie
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium
Contact:

Re: Yet Another Image Format: Google's "WebP"

Post by Frenzie »

bat999 wrote:Hi
It's possible to display a webp image by making it into a 1-frame webm video.
So the image displays OK with Firefox-4 but doesn't display with Firefox-3.6.9.
A demo is here:- http://antimatter15.github.com/weppy/demo.html

Isn't the whole rendering it to canvas part a bit redundant? If you skip the canvas part altogether and only put the 1 frame video in the page it works in Opera, and it also seems to improve Chromium stability. Of course it's interesting in regard to fixing canvas bugs, but otherwise it just seems needlessly complex to me. Anyway, nice concept and execution. :D
Intelligent alien life does exist, otherwise they would have contacted us.
User avatar
bat999
Posts: 40
Joined: September 10th, 2010, 3:30 pm
Location: UK

Re: Yet Another Image Format: Google's "WebP"

Post by bat999 »

Hi Frenzie
It's not my demo. :D
I expect the guy would appreciate your comments though. :)
Here:-http://antimatter15.com/wp/
User avatar
Frenzie
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium
Contact:

Re: Yet Another Image Format: Google's "WebP"

Post by Frenzie »

bat999 wrote:Hi Frenzie
It's not my demo. :D
I expect the guy would appreciate your comments though. :)
Here:-http://antimatter15.com/wp/

I took care of that already. :)
Intelligent alien life does exist, otherwise they would have contacted us.
User avatar
Frenzie
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium
Contact:

Re: Yet Another Image Format: Google's "WebP"

Post by Frenzie »

http://my.opera.com/community/forums/to ... ?id=761682

I figured I'd make it into a userscript. Should work in Opera 10.6x+ and Firefox 4 trunk builds (with an appropriate version of GM).
Intelligent alien life does exist, otherwise they would have contacted us.
User avatar
patermann
Folder@Home
Posts: 454
Joined: October 20th, 2007, 1:24 pm
Location: UK

Re: Yet Another Image Format: Google's "WebP"

Post by patermann »

One of the reasons that people started looking at alternatives to JPEG format was the uncertain patent situation. Although I believe that all patents connected with the JPEG format have been invalidated, it still leaves a legacy of uncertainty that hasn't faded completely. It was, of course, similar issues with Unisys and the GIF format that led to MNG/PNG being developed.

Given that, the apparent lack of enthusiasm for JPEG XR may be connected with the fact that it was formerly called "Windows Media Photo" and is "based on technology originally developed and patented by Microsoft" (Wikipedia: http://en.wikipedia.org/wiki/JPEG_XR ). It says in the section on Licensing that Microsoft have stated that they will not file suit on the patented technology but, as long as Microsoft hold the patents, they can easily change their mind if use of the format became widespread. Also interesting is that the license for their "HD Photo Device Porting Kit" (JPEG XR was also called HD Photo at one time) specifically prohibits use of the code in any software that uses strong copyleft licensing such as the GPL. There are plenty of graphics formats to choose from so I have to wonder why anyone would risk using this one?

patermann
You can try and make a system foolproof but fools can be very ingenious!
Folding for all it is worth
maxst
Posts: 112
Joined: February 11th, 2010, 5:04 am

Re: Yet Another Image Format: Google's "WebP"

Post by maxst »

patermann wrote:One of the reasons that people started looking at alternatives to JPEG format was the uncertain patent situation.


No, it's because of JPEG artifacts.
Post Reply