Skip to content

Instantly share code, notes, and snippets.

@10maurycy10
Created January 21, 2022 20:24
Show Gist options
  • Save 10maurycy10/f515865263a4f6079842f2b4ce64730c to your computer and use it in GitHub Desktop.
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.
#!/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