ed-asriyan / lottie-converter

Converts Lottie Animations (.json / .lottie) and Telegram stickers (*.tgs) to GIF / PNG / APNG / WEBP / WEBM
https://t.me/tgtowabot
MIT License
795 stars 72 forks source link

gzip: filename.tgs.gz: No such file or directory #95

Closed MonsterSe7en closed 2 months ago

MonsterSe7en commented 2 months ago

Apologies in advance in case this is a silly doubt

"F:\Telegram Emojis" is my local directory with the .tgs files in it

I installed docker for desktop

I'm on Windows 11

The console output is as follows:

C:\Users\Monster>docker run --rm -v "F:\Telegram Emojis":/source edasriyan/lottie-to-gif Unable to find image 'edasriyan/lottie-to-gif:latest' locally latest: Pulling from edasriyan/lottie-to-gif 6299ae3fea5d: Pull complete 264cbb337611: Pull complete 664f776008c6: Pull complete 38765ae832f3: Pull complete 0a81288c9a12: Pull complete Digest: sha256:329fe35c5a0a57134a6bcf38b344cb1efd165b5f5e3150fed0c13e40aac2af24 Status: Downloaded newer image for edasriyan/lottie-to-gif:latest Converting /source/No mouth.tgs... gzip: mouth.tgs.gz: No such file or directory terminate called after throwing an instance of 'std::runtime_error' what(): can not load lottie animation /usr/bin/lottie_common.sh: line 106: 15 Aborted $SCRIPT_DIR/lottie_to_png --width $WIDTH --height $HEIGHT --fps $FPS --threads $THREADS --output $TMP_PATH $LOTTIE_PATH error: The following required arguments were not provided:

... USAGE: gifski --output --quiet --fps --height --width --quality <1-100> ... For more information try --help C:\Users\Monster> **To Reproduce** Steps to reproduce the behavior: 1. Download this file to ... 2. Run this command ... 3. Open that file in ... 4. See error **Expected result** A clear and concise description of what you expected to happen. **Actual result** A clear and concise description of what happened instead. **Console copy-paste** Please copy-paste command run and program output ```terminal docker run --rm -v /tmp/test-files:/source edasriyan/lottie-to-webp Converting /source/11.json... Done. Converting /source/08.tgs... Done. Segmentation fault... ``` **Desktop (please complete the following information):** - OS: [e.g. iOS] - Arch: [e.g. arm, x86_64] **Additional context** Add any other context about the problem here.
MonsterSe7en commented 2 months ago

Issue resolved, It doesn't work if any of the file names have a [space] in them (even though I share the PATH with quotes). Please check if this exception can be handled.

I'm super new to docker (unfamiliar with the syntax) so I was extra skeptical when you mentioned 'One-line command' in your readme, I was extra skeptical when the One-line command didn't mention a dockerfile (The Basic Docker tutorials I referred speak about a running local dockerfile). You called it from the cloud XD (Haven't reached that part yet)

You sir are terrifyingly brilliant!! Thank you for your work @ed-asriyan