Last active
March 18, 2023 11:14
-
-
Save rebooting/8b80729a196a7245eb3324ab2353ed8c to your computer and use it in GitHub Desktop.
resize image with only ffmpeg ( if you don't want to install ImageMagick)
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
| ``` | |
| #!/bin/sh | |
| for file in *.png | |
| do | |
| ffmpeg -i $file -vf scale=720:-1 "Small-$file.png" | |
| done | |
| ``` |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To convert PNG to JPEG with quality option:
where qscale 2 - 31