elsonwx/webp2gif

If the output path is absolute the script doesn't create the file where you expect.

Opened this issue · 0 comments

For example if I call it like below, no output file is generated in /tmp/output.gif:

$ ~/webp2gif input.webp /tmp/output.gif

This happens because it tries to move the final GIF to the location "$cur_dir/tmp/output.gif" which is not where one expects it to end up.

I had to batch process a bunch of files, so I added a quick fix using a smart bit of code found on StackOverflow, which I use to determine the absolute paths. See my repository for the fix: https://github.com/hugovangalen/webp2gif/