Last active
February 26, 2018 00:40
-
-
Save natekford/5c7638461846e9e6a06c4bac84476016 to your computer and use it in GitHub Desktop.
Discord gif profile picture resizer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set "filters=fps=30,scale=120:120:force_original_aspect_ratio=increase:flags=lanczos" | |
| set "input="%~1"" | |
| set "output="%~dp1Output - %~n1.gif"" | |
| ffmpeg -y -i %input% -vf %filters%,palettegen -f image2pipe pipe:1 | ffmpeg -y -i %input% -f image2pipe -i pipe:0 -filter_complex %filters%[x];[x][1:v]paletteuse %output% | |
| echo Saved to %output% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment