Created
July 5, 2020 19:59
-
-
Save k1sul1/6508bcd0caad4b54405ad5e54c15e456 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
find Original -type d | sed 's/^Original/Resized/' | tr '\n' '\0' | xargs -0 mkdir -p | |
for f in (find Original -type f -name '*.png'); convert "$f" -resize 'x256>' (string replace Original Resized "$f"); end | |
# images need to be inside folder called Original, they will be sized to be 256 wide |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment