I am an extreme moderate

November 21, 2011

Webp gallery oddities

Filed under: Uncategorized — niezmierniespokojny @ 6:22 pm

I looked at the sample webp lossless images provided by Google.
Let’s see how do they look after we strip the transparency…
1:
1
2:
2
3:
3
4:
4
5:
5

Notice the oddities on 1 and 4? This is a dirty transparency optimization. You can see the basic scheme explained here. This version looks to be the most advanced one, blacking out is good, but adds some edges that are uneasy for the codec to predict. Here, instead of black there’s exactly the thing that the codec would predict.
What codec?
Certainly not PNG.
I tried CryoPNG on the image, which tries to manipulate dirty transparency so it works best with PNG. The best result looked like this:
1 - optimized, no alpha
Compression improved from 118.5 to 108.4 KB. The result can be seen below.
1 - optimized
I suspected that Google chose the transparency pattern to make webp look good, so I tried to compress the image optimized for PNG with webpll, expecting to see the size increasing. Surprise, it dropped too. From 88.1 to 82.2 KB. So I don’t have an explanation for the pattern.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Shocking Blue Green Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: