#๐ Having trouble trying to convert an image
21 messages ยท Page 1 of 1 (latest)
@edgy flint
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
ffmpeg converts your apng to gif quite easily, here's me doing it through the python repl
you really should familiarise yourself with ffmpeg, it's a very useful tool
there is no module, isn't it fine that it's an external tool?
yes, it's transparent, and ffmpeg has a ridiculous amount of features, sure it can upscale, it'll take you some googling though
imagemagick is a command line tool just like ffmpeg, it's not as familiar to me though
it's a command line tool, you use it from the command line, when run with no arguments (i.e. double clicking) it naturally has no job to perform and closes
or, it does perform its single job when it has no arguments: it displays a help screen and then immediately finishes - you will only keep that help screen if you run it from the command line
you'll have to demonstrate that for me or there's not much i can do
run ffmpeg with no arguments, what version does it say it is?
from where was it acquired?
i've not seen a version number like that, i guess it's an automatic build rather than a release build
sure enough, i download an automatic build, and its gif output is broken...
i'm going to investigate a bit
my guess is that new versions of ffmpeg (mine was from 2020) are more strict in how gif palettes are handled, somehow, and i got it working with this command:
ffmpeg -i input.png -filter_complex "[0]split[a][b];[a]palettegen[p];[b][p]paletteuse" output.gif```
got it from here https://trac.ffmpeg.org/ticket/7923
ah not quite, it's got artifacting...
well, if you don't want to troubleshoot it further, you could always acquire my old version, or see how imagemagick fares C:\Users\nesfi>ffmpeg ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.1 (GCC) 20200726
just snoop around on that gyan and you find it
https://github.com/GyanD/codexffmpeg/releases?q=4.3.1&expanded=true
Support for https://www.gyan.dev/ffmpeg. Contribute to GyanD/codexffmpeg development by creating an account on GitHub.
huh, i saw a pink outline
i read that filtering is required to preserve transparency at rescale, google around and you'll find stuff
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.