jscher2000 / Save-webP-as-extension

Firefox extension to overlay format and JPEG quality buttons on inline or stand-alone images for quickly saving a converted version of the image.
Mozilla Public License 2.0
42 stars 1 forks source link

Can't save animated webp #31

Open ReyVGM opened 3 months ago

ReyVGM commented 3 months ago

Hello. Thanks for this great add on!

I read the release notes and all the open and closed issues to see if anyone talked about this yet, but I didn't find anything. Apologies if this has been answered before.

I'm trying to save an animated gif which happens to be in webp format. When I right click and save it as "GIF (V)", the addon gives me this message: "Since this is a .gif/.gifv file, try using the Page Info dialog, Media panel, to Save As in GIF format."

But for the life of me I can't see anywhere on the addon where the "Page info" dialog is. If it's the blue "i" button, then all I see there is text and there's no media panel.

There's a "view image info" option when I right click the image, and there is a media tab there, but it just saves the image in the same webp format.

jscher2000 commented 3 months ago

There are two ways to call up the Page Info dialog. One is "View Image Info" if you added that to the right-click context menu, and the other is Ctrl+i. Back in the day, when you saved the file, Firefox would re-request it without indicating that it accepts WebP. But servers don't always base their decisions on that signal, so you might still get WebP.

The IE 11 button is another option: it sends the old user agent string of IE 11 to discourage servers from using modern formats. This isn't 100% reliable, either.

ReyVGM commented 3 months ago

Alright, thanks.

But why is the addon not converting and saving the animated webp image into an animated gif? Or, if the image is really a gif, why is it not saving it directly as such?

jscher2000 commented 3 months ago

Hi, an animated image has a lot of individual images as frames. The way this extension works can only convert one frame (typically the first).

I guess I should change the way the GIF(V) button works -- what it is supposed to do is send the URL of the animated WebP file to ezGIF for them to convert. But if the extension is .gif, I guess it has that message. Hmm.

ReyVGM commented 3 months ago

Hi, an animated image has a lot of individual images as frames. The way this extension works can only convert one frame (typically the first).

I guess I should change the way the GIF(V) button works -- what it is supposed to do is send the URL of the animated WebP file to ezGIF for them to convert. But if the extension is .gif, I guess it has that message. Hmm.

I understand.

The thing is that the image (internally) might be a gif, but when you try to save it, it saves it as a webp. I really don't know why some pages do that.

jscher2000 commented 3 months ago

Is there a site with good examples for testing? I've lost track of the one I used a few years ago.

ReyVGM commented 3 months ago

Well, this is going to be a bit not safe for work!

I don't know if I can post the URL without it being censored, but... go to and try to save any of them with the addon and you'll get the message.

jscher2000 commented 3 months ago

Actually, I remembered, it's Tumblr. https://www.tumblr.com/tagged/gif%20animation

I'll submit an update for review.

ReyVGM commented 3 months ago

Awesome, thanks!