Created
July 7, 2019 11:58
-
-
Save spvkgn/494b5b3eab0b9182b909b6a1fb7a4d4c to your computer and use it in GitHub Desktop.
imagemagick tips
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 | |
# resize jpeg | |
mogrify -format jpg -strip -interlace plane -sampling-factor 4:2:0 -define jpeg:dct-method=float -density 300x300 -resize 50% -quality 85 -path /tmp *.jpg | |
convert -format jpg -strip -interlace plane -sampling-factor 4:2:0 -define jpeg:dct-method=float -density 300x300 -resize 50% -quality 85 file.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment