PAD/ani-conv-64.png image

Animation conversion toolset

The web-ani-tools.zip package contains four separate tools for converting GIF, PNG and WebP animations.

What are animated PNG and WebP formats?

The GIF file format is widely used to encode simple animations. Because it is limited to 256 colors and cannot encode semitransparent pixels, other file formats have been designed to overcome these limitations.

Animated PNG is backward compatible with ordinary PNG and is supported by the Mozilla Firefox browser. In other browsers, only the first frame of the animation is shown.

WebP is a new file format supported in Google Chrome. In other browsers, the WebP images and animations are not displayed. Animated WebP files can use lossless or lossy compression.

How to use the tools?

The tools can be used either from command line or from Windows Desktop. In the later case, place a tool on your Desktop and then drag and drop files or folders onto it. The tool will automatically convert all compatible images to the target format and place them in the same folders as the originals.

Options

The tools accepts the following command line options:

Important: always use the command line options before the files to process and use double quotes when parameters or paths contain spaces, for example:

gif2webp.exe -q80 -u "C:\My Pictures\Some GIFs"

Alternative way of setting options

Because the tool is also meant to be used from the Desktop, there is an alternative to command line switches. You can copy and rename the tool to set the options.

File-name options can be combined. For example

gif2webp80RU.exe

will use lossy compression with quality of 80, process all sub-folders and skip files that were already converted.

Customizing output folder

The tool by default places the converted files in the same folder. The -c switch can be used to change this behavior. Important: always enclose the -c switch in double quotes. For example:

"-cC:\Output\<NAME>.webp"

will put all converted files into the C:\Output folder.

"-cC:\Output\<PATH><NAME>.webp"

will put all converted files into the C:\Output folder, but also replicates the sub-folder structure (this is only useful when using -r for recursive sub-folder processing).

"-c<ROOT><PATH>converted\<NAME>.webp"

will place the converted files in a sub-folder called "converted" in each processed folder.

Customizing output

Use the -o switch to customize the text the tool sends to the standard output. For example:

"-o<SRCNAME><EN>"

writes just the names of the processed files, one on each line.

"-o<a href=<QT><SRCNAME><QT>> <img src=<QT><DSTNAME><QT> /> </a><EN>"

generates a html fragment that puts the converted image name as the source of the img tag and links to the original image.

What placeholders can be used:

speech bubble iconRecent comments

Show older posts
user iconAnonymous on March 9th 2020 0

mp4 mp4 !

user iconPeter on April 13th 2020 0

Am looking for a way to convert webp back to gif so I can use them on social media. This was pointed out to me by a user, but they seem to be windows only? I need Mac or *nix.

user iconAnonymous on November 19th 2020 0

It's not working for me, apng2webp just throws an empty apng file either from the command line or from the drag and drop method.

user iconAnonymous on February 2nd 2022 0

I'm looking for a command line switch for WEBP2GIF.exe so that when an incoming webp file does not specify 'replace' or 'combine', that the default is set to "REPLACE" rather than the current default. The faulty conversions can usually be easily spotted by doing a side by side comparison with the original webp file as there is a distinct discoloration in the gif file when viewed with Windows File Explorer.

user iconGioye on November 26th 2022 0

gif to mp4 it's the only & one thing that i need but it's not here 😞 😴

user iconkardin on March 19th 2023 0

Question about apng2gif.exe
If my apng file has loop count = 4, when convert it to gif I want loop count = infinity - how to do it? Thanks

If you want to make changes to the file and not simply convert it as is then maybe try using the image editor instead. - by Vlasta on March 19th 2023
user iconAnonymous on August 1st 2023 0

I'm trying to get the output folder to work but to no avail.
webp2gif.exe -qX "%cd%\input" "-c%cd%\output"

Is -c<output_path_template> in the wrong place? It seems to ignore it and places the files in the input directory

nvm got, parameter needed to be prior - by Anonymous on August 1st 2023
user iconZyler on November 9th 2023 0

how do you make a gif

user iconAnonymous on March 10th 2024 0

No source code or linux versions of these commands?

user iconAnonymous on October 21st 2024 0

this looks cool
😎

user icon