Last active
December 20, 2015 10:19
-
-
Save benzenwen/6114753 to your computer and use it in GitHub Desktop.
Joyent Manta command to convert from JPG to webp using ImageMagick's convert.
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
mfind -t o -n JPG /$MANTA_USER/stor/pictures | mjob create -w -m 'convert -quality 50 -define webp:lossless=true $MANTA_INPUT_FILE /var/tmp/out.webp && mpipe ${MANTA_INPUT_OBJECT%.*}.webp < /var/tmp/out.webp' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment