Last active
June 15, 2022 08:10
-
-
Save Fintan/b2d98f7eb0aec5745a105055d033e857 to your computer and use it in GitHub Desktop.
Use Imagemagick to resize and set quality of all jpegs in a directory, copying to a sub-directory (xyz)
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
magick mogrify -path xyz -quality 82 -resize 512x512 *.jpg |
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
# convert png to jpg | |
for image in *.png ; do convert "$image" "${image%.*}.jpg" ; done | |
# https://www.opensourcefeed.org/00-convert-png-to-jpg-imagemagick/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.imagemagick.org/Usage/resize/