So I have been dabbling with the WebP image format and its support for animations lately. This format is well-supported by major browsers by now, but not so well supported by forums, dA, site generators (like the one I use at TGS) etc. So I wanted to give it a try here and prepared a small sample animation (sized 1.252 KB) for upload. However that upload failed ("says "invalid file extension").
Instead I can use the img shortcut and reference WebP files at TGS (using larger ones here though, so this might take a while to load):
So this WebP animation is sized 52MB and uses lossless compression.
The content of the above WebP is exactly the same as this APNG:
The APNG is quite a bit larger with 73MB. That surprised me a bit, as most comparisons I found elsewhere suggested there would be only a very minor difference in size.
But the real benefit of WebP is its lossy compression, which allows for this:
I set the quality to 95% here, so the loss is barely visible (unlike my tests with 90% and lower). Even so the filesize was reduced to a mere 9.5MB.
I also wanted to show a GIF for comparison, but the conversion tool yielded such ugly results, that I decided to spare you the sight. It really is a dated format that only allows for 256 colors.
You may notice different animation speeds, because I set 30fps for these and some browsers will restrict APNG playback to 10fps. Not sure if any do that for WebP. It would be nice if QSF would support WebP at some point. Until then I will continue embedding these from my own webspace. And now that this little test is done, I shall get back to more rendering...
Image format with animations (WEBP, PNG, GIF)
- Aiko
- Posts: 936
- Joined: Thu Apr 16, 2009 9:43 pm
- Location: The Great Swamp
- Contact:
Image format with animations (WEBP, PNG, GIF)
Visit me at the Great Swamp, but watch your step on the way there!
- bogbud
- Posts: 737
- Joined: Sat May 30, 2015 6:43 am
- Location: Stuck and sinking
Re: Image format with animations (WEBP, PNG, GIF)
Very nice animation and that jungle-warrior should be more careful while walking over that floating-mat. The layer of moss seems not THAT stable
The compressed version shows a few artifacts at her thigh.
The compressed version shows a few artifacts at her thigh.
I'm already chindeep in this mudbog and every desperate attempt to move my stuck legs only drives me deeper in. The thick mud slowly swamps my waders and my arms have nothing to hold onto.
I'm feeling home.
I'm feeling home.
- Aiko
- Posts: 936
- Joined: Thu Apr 16, 2009 9:43 pm
- Location: The Great Swamp
- Contact:
Re: Image format with animations (WEBP, PNG, GIF)
bogbud wrote:Very nice animation and that jungle-warrior should be more careful while walking over that floating-mat. The layer of moss seems not THAT stable
No, it's really not. But Shetani is well aware of that.
bogbud wrote:The compressed version shows a few artifacts at her thigh.
Screenshot 2021-04-10 171931.jpg
You're right, but that's a trade-off I am willing to accept. At least for larger animations that would otherwise easily exceed 1GB in size.
Visit me at the Great Swamp, but watch your step on the way there!
- MadMax359
- Posts: 4235
- Joined: Sun Apr 19, 2009 5:07 am
- Location: north carolina
Re: Image format with animations (WEBP, PNG, GIF)
this looks amazing!! looking forward to future adventures!
The strong do what they want, the weak do what they must
Who is online
Users browsing this forum: No registered users and 1 guest