Created
January 21, 2022 20:24
-
-
Save 10maurycy10/f515865263a4f6079842f2b4ce64730c to your computer and use it in GitHub Desktop.
A script to preform a liquid resize with imagemagic on all file in a directory, this can be used to aviod repost detection bots.
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
#!/bin/sh | |
ls | grep -v '\.sh' | grep -v '_scaled.png' | while IFS= read -r line; do | |
echo "resizing $line" | |
convert "$line" -liquid-rescale 90x90%\! "$line_scaled.png" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment