Created
January 14, 2026 16:33
-
-
Save wteuber/4bfcd7ed8ddcf20587ffa3f6debc59b8 to your computer and use it in GitHub Desktop.
jpg_to_2048.sh
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
| #! /usr/bin/env bash | |
| # brew install imagemagick | |
| # brew install jpegoptim | |
| mkdir 2048 | |
| for image in *.jpg; do | |
| convert $image -resize 2048x2048\> ./2048/$image | |
| jpegoptim --strip-all -q --max=80 ./2048/$image | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment