It is currently Wed Jul 03, 2024 10:59 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: export animation as webp
PostPosted: Mon Jul 14, 2014 8:39 pm  (#1) 
Offline
GimpChat Member

Joined: Jun 03, 2014
Posts: 6
GIMP Version: 2.8.10
Operating System: Linux
GIMP Experience: Advanced Level

List any relevant plug-ins or scripts:
GMIC



Animated gif has a pallet of 8 bit (256) colors. WebP on the other hand has 24 bit color and 8 bit alpha channels. I would like to export some animations as webp so that they look a lot better. However, GIMP does not seem to have webp export support. I found some plugins from 2012 in the registry, but these do not support animation. Are there any alternatives?


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: export animation as webp
PostPosted: Tue Jul 15, 2014 12:05 am  (#2) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
apng is supported swf was supported but is not now why webp is not supported I do not know but maybe GnuTux can answer

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Last edited by Graechan on Tue Jul 15, 2014 12:15 am, edited 1 time in total.

Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 12:09 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Doesn't google's animated webp have very limited web-browser support?
Even Google Chrome gave a green light to webp animation support just recently. It has a great potential of course.

I'm pretty sure there are some online gif to animated webp converters.
Not going to improve the quality of an existing gif but at least will reduce animation size and load time.

With gimp - not so many alternatives to gif.
1. apng animation (requires apng plugin )*
2. swf flash animation (requires swf tools and Flash swf export gimp plugin)**

*superb PNG quality comes at the bigger file size cost, not allowed by some websites, needs web-browser apng addon/extention installed to view animation
** much, much smaller size than apng or gif and superb quality, then again not very popular format for websites with user defined content.

I used to use both with gimp 2.6-2.8, worked flawlessly.

**btw, ReaConverter can convert swf to webp animation but it's a commercial software.


Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 12:42 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Graechan wrote:
apng is supported swf was supported but is not now why webp is not supported I do not know but maybe GnuTux can answer


swf needs swftools installed on your system, I don't have it now but worked
just fine on gimp 2.8.6, should work in latest version too.

Webp plugin for gimp is for still images import/export only, works fine in 2.8.10 on Windows.


Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 1:19 am  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
K1TesseraEna swf was among the list of available extensions but is no longer there so I have not installed swf tools
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 1:30 am  (#6) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Current support: WebP image format.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 2:17 am  (#7) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
does anyone have files for apng 32bit and 64bit for 2.8.10

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 5:28 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Thanks for the link Odin!
So I was right, very limited support: (from the link) Animated webp images are supported in Chrome 32+ and Opera 19+.
It's also supported by Chrome for Android after they solved 300ms tap delay issue.


Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 5:50 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Graechan wrote:
K1TesseraEna swf was among the list of available extensions but is no longer there so I have not installed swf tools
[ Image ]


Graechan, are you talking about file formats supported by Gimp Chat forum?

Yeah, you don't need swf tools on your PC for that, cause it can't change this website list of
acceptable file formats.

Anyways, I can't recall GC accepting SWF Flash animation.
I always wanted to ask Tux why but i never did.


Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 6:25 am  (#10) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Too much room for abuse with flash, not to mention the security issues.

MNG never caught on and APNG creates really big files.

It's impressive that WebP can compress 24bit color images that can be 20% smaller (or less) than GIFs. I have read some criticisms regarding the quality of the animations, though. It's said they can be kinda blurry.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 5:23 pm  (#11) 
Offline
GimpChat Member

Joined: Jun 03, 2014
Posts: 6
Perhaps a better question here might be....

Can GIMP export all layers as individual PNG's something like:

layer001.png
layer002.png
...
layer100.png

So that they can be stitched into an animated WebP file from another method?

The reason I'm so excited about animated WebP is that Chrome is used 40% across all platforms today and it's very easy to serve lower quality animated gif's to browsers that do not support WebP as a fallback.


Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 6:06 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Check out gimp plugin registry website there are plenty of plugins to export layers as individual files.


Top
 Post subject: Re: export animation as webp
PostPosted: Tue Jul 15, 2014 7:40 pm  (#13) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
trizo wrote:
Perhaps a better question here might be....

Can GIMP export all layers as individual PNG's something like:

layer001.png
layer002.png

Check out GIMP GAP (GIMP Animation Plug-in).

Source Code

Your Linux software repository might contain GAP pre-compiled for your distro.

64Bit Linux Binary in this thread.

Also, this thread on compiling GAP might help.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: export animation as webp
PostPosted: Wed Jul 16, 2014 12:20 am  (#14) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Although gif has served us for years the quality is poor, an alternate would be good as I am having difficulty loading apng into 2.8.10 64bit

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: export animation as webp
PostPosted: Wed Jul 16, 2014 7:19 am  (#15) 
Offline
GimpChat Member

Joined: Jun 03, 2014
Posts: 6
Going to be trying this out today to make some HQ WebP !!

>Yes, WebP has a support for animation. You can create animated WebP images using the WebPMux library/binary as follows:
(Make sure you have the 'cwebp' and 'webpmux' binaries).

(1) Convert all the JPEG images to WebP using the 'cwebp' binary. e.g.

for file in *.jpg; do cwebp ${file} -o ${file%.jpg}.webp; done

(2) Now, create an animated WebP image, from multiple WebP images created in step 1, using 'webpmux' binary.
For example, suppose you want to create an animation from 1.webp, 2.webp, 3.webp & 4.webp where
- Duration (in milliseconds) between frames is 60ms.
- Animation loops 1000 times
- Each frame has image offset (0,0) [that is, the top left pixel of each frame is located at (0,0)].
You can use the following command to achieve this:

webpmux -frame 1.webp +60+0+0 -frame 2.webp +60+0+0 -frame 3.webp +60+0+0 -frame 4.webp +60+0+0 -loop 1000 -o animation.webp


Last edited by trizo on Wed Jul 16, 2014 5:33 pm, edited 1 time in total.

Top
 Post subject: Re: export animation as webp
PostPosted: Wed Jul 16, 2014 5:31 pm  (#16) 
Offline
GimpChat Member

Joined: Jun 03, 2014
Posts: 6
The quality of webp over gif is just amazing.... check out this sample I made (same source png's used in both)

WebP example:
Image

GIF example:
Image


Top
 Post subject: Re: export animation as webp
PostPosted: Sat Nov 18, 2023 2:18 pm  (#17) 
Offline
New Member

Joined: Nov 18, 2023
Posts: 1
Hi, how do I avoid naming every single frame ? I have about 50 of them in a folder.
Thanks.


Top
 Post subject: Re: export animation as webp
PostPosted: Sat Nov 18, 2023 7:14 pm  (#18) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Word of caution: this thread was started in 2014, so, 9 years later, Gimp has evolved quite a bit and will do WebP animations.

In Gimp, you can use "File > Open as layers" and select all the files in the folder at once to load the frames as layers, and then export the image as Webp, ticking the "As Animation" option.

_________________
Image


Top
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Gimp's webp output

1

No new posts WebP picture for the attachment

1

No new posts Attachment(s) LED Animation from Animation Plug-in

6

No new posts Cannot Export changes [Solved]

15

No new posts PNG & JPG Export Size

4



* Login  



Powered by phpBB3 © phpBB Group