It is currently Fri Jul 26, 2024 7:18 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: WebP Animations - Comparison APNG vs. WebP
PostPosted: Sat Apr 06, 2013 11:28 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
As you know, WebP is an image format that employs both lossy and lossless compression. WebP is an open format currently developed by Google:
https://en.wikipedia.org/wiki/WebP

And finally implemented support for animation (see article in LibreGraphicsWorld):
http://libregraphicsworld.org/blog/entr ... on-support

You can download WebP binaries from:
https://code.google.com/p/webp/downloads/list

You know, we always try to reduce the file size with the least possible loss of quality. And reducing the file size is something to be thankful for when it comes to animations for the web (comparing with APNG, GIF, that do not support lossy compression).

For comparison, download WebP tools binaries from the above link and unzip to a folder. In the same folder unzip this file with the samples:
http://www.fileswap.com/dl/WJ3cbUOnGW/w ... s.zip.html

Now in GNU/Linux (I think you have to do something similar in Windows) open the terminal in the same folder and run the following commands to open the WebP viewer:
./vwebp dino.webp

./vwebp gemstone.webp


Drag the windows on the link below and compare:
viewtopic.php?f=9&t=195

The file sizes are:
**dino (2 frames)
apng - 185.9 KiB
webp - 95,8 KiB
**gemstone (15 frames):
apng - 1019,5 KiB
webp - 106,2 KiB

I really do not know why there is so much file size difference in the second example. I've used in all images "50" as the value of compression for WebP.

_________________
Image
Be patient, English is not my language.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: WebP Animations - Comparison APNG vs. WebP
PostPosted: Sun Apr 07, 2013 12:15 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14730
Location: USA
I did look into webp format a little bit last year.
Now that it supports animation do you think someone will build a plugin for gimp to export in that format?
It will be interesting to see how much further development from Google goes with this new format.
Of course it really isn't all that new.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: WebP Animations - Comparison APNG vs. WebP
PostPosted: Sun Apr 07, 2013 12:37 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Hi Rod.
Rod wrote:
Now that it supports animation do you think someone will build a plugin for gimp to export in that format?

I have no idea. But I hope someone build it.
I think that web browsers and forums do not support WebP animations too. And still no graphical programs to handle WebP. I hope that from now start to have better support for WebP. I guess that depends on Google publishes clear specifications and everything needed to make work easier for developers.

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: WebP Animations - Comparison APNG vs. WebP
PostPosted: Sun Apr 07, 2013 12:41 am  (#4) 
Offline
GimpChat Member

Joined: May 15, 2010
Posts: 64
You need to run APNG through this:
https://sourceforge.net/projects/apng/f ... Optimizer/

And WebP animations are so new, even their own Chromium doesn't support them yet.
So it would be quite a while until it's in stable Chrome.


Top
 Post subject: Re: WebP Animations - Comparison APNG vs. WebP
PostPosted: Sun Apr 07, 2013 12:51 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Hello. I think the APNG for example I have used already are optimized. At least if I apply "apngopt" they result in a slightly larger size.
You remember that APNG (PNG) is a format that does not support lossy compression.

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: WebP Animations - Comparison APNG vs. WebP
PostPosted: Sun Apr 07, 2013 3:21 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Rod wrote:
I did look into webp format a little bit last year.
Now that it supports animation do you think someone will build a plugin for gimp to export in that format?
It will be interesting to see how much further development from Google goes with this new format.
Of course it really isn't all that new.



WebP plugin for GIMP has been around for some time, I had it on GIMP 2.6.11. It needs further development, it does import/export, but does not support transparency and can't save as animation yet.


YAFU wrote:
You know, we always try to reduce the file size with the least possible loss of quality. And reducing the file size is something to be thankful for when it comes to animations for the web (comparing with APNG, GIF, that do not support lossy compression).

The file sizes are:
**dino (2 frames)
apng - 185.9 KiB
webp - 95,8 KiB
**gemstone (15 frames):
apng - 1019,5 KiB
webp - 106,2 KiB

I really do not know why there is so much file size difference in the second example. I've used in all images "50" as the value of compression for WebP.


SWF is another file format to look at. Well, the same 15 frame animation with preserved high quality would be about the same or even less size than webp. The only disadvantage is - you can't use it for a still image and it's not allowed by many websites including GC, so webp driven by Google def. has a better perspective.


Top
 Post subject: Re: WebP Animations - Comparison APNG vs. WebP
PostPosted: Sun Apr 07, 2013 9:43 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
K1TesseraEna wrote:
SWF is another file format to look at... The only disadvantage is...


* SWF is not an open format, and its tools are not OpenSource.
* It belongs to Adobe :mrgreen:

Anyway, SWF apparently seems to work with vector graphics.

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: WebP Animations - Comparison APNG vs. WebP
PostPosted: Sun Apr 07, 2013 1:36 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
YAFU wrote:
K1TesseraEna wrote:
SWF is another file format to look at... The only disadvantage is...


* SWF is not an open format, and its tools are not OpenSource.
* It belongs to Adobe :mrgreen:

Anyway, SWF apparently seems to work with vector graphics.


Open format or not, SWF is free to use and you don't need SDK tools to make animations.


Top
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts WebP picture for the attachment

1

No new posts Gimp's webp output

1

No new posts Attachment(s) super resolution comparison, median seamless

5

No new posts Attachment(s) APNG (animated PNG) plug-in for Gimp 2.10 Windows64x

4

No new posts Attachment(s) Just a couple animations I've done - Christian

5


cron

* Login  



Powered by phpBB3 © phpBB Group