Created
April 30, 2019 20:54
-
-
Save dotHTM/cd5e3c0ea36f5cdeb7b51bf3a432907e to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
convert source.png lower.jpg | |
flation(){ | |
convert lower.jpg -resize 107% lower.jpg | |
} | |
quality(){ | |
convert lower.jpg -quality 1 lower.jpg | |
} | |
for i in `seq 20`; do | |
flation | |
quality | |
done | |
convert lower.jpg good.png | |
convert good.png -resize 1000% good.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment