Second, I added another webpinfo check to grab the frame duration and use that (if > 0) for DELAY (naively assuming that people aren't using variable frame durations): #!/bin/bashĭur=`webpinfo -summary $f | grep Duration | head -1 | sed -e 's/.* \(*\)$/\1/'`Ĭonvert $pfx.*.png -delay $DELAY -loop $LOOP $pfx. Then that particular file could be corrupted, as other suggests try saving this file to a native GIMP format. First, an altered for loop to zero pad those frame filenames. I created a new file and its exporting in Jpeg just fine. I fixed that and tried it on a few giphy webp animations (including your example) and the output is what you'd expect.īelow is just your script with two changes. Your script works just fine, but you need to zero pad your individual frame names otherwise it creates the gif with frames in a jumbled order. Load/save DDS files, optionally using DirectX texture compression (DXT). Is it proper form to post in this forum for suggestions of improvement of the procedure/invocations?Īnd: If there are custom tools for this conversion, please share your knowledge! :) It allows you to load and save images in the Direct Draw Surface (DDS) format. I tried it on this file and the resulting file was kind of artifacty. Which creates a gif animation from the extracted frames of the file supplied in the first argument. Pfx=`echo -n $f | sed -e 's/^\(.*\).webp$/\1/'` Information for package gimp: - Repository : Main Repository Name : gimp Version : 2.8.22-lp151.4.6 Arch : x8664 Vendor : openSUSE Installed Size : 29.1 MiB Installed : Yes (automatically) Status : up-to-date Source package : gimp-2.8.22-lp151.4.6. My GIMP 2.8.22 and ImageMagick 7.0.7-21 on linux 4.14.13-1-ARCH don't seem to support the format, and the only tool available in repos seem to be libwebp 0.4.1 which includes a decode tool that lets you extract individual frames to some image formats, none of them being gif (It's a licensing problem maybe?)Īnyway, I used the following script: #!/bin/bash I was surprised today to find apparently how difficult it is to go from a webp animation to gif animation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |