-
-
Save fanweixiao/03979a7b62c886b9cc6b0630be4bc34e to your computer and use it in GitHub Desktop.
Resize and convert image to web optimized jpg with imagemagick and mozjpeg
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 source.png -resize 1920x1080 -background white -flatten TGA:- | cjpeg -quality 90 -targa -outfile compressed.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment