Skip to content

Instantly share code, notes, and snippets.

@spvkgn
Created July 7, 2019 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spvkgn/494b5b3eab0b9182b909b6a1fb7a4d4c to your computer and use it in GitHub Desktop.
Save spvkgn/494b5b3eab0b9182b909b6a1fb7a4d4c to your computer and use it in GitHub Desktop.
imagemagick tips
#!/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