Created
September 27, 2013 16:56
-
-
Save cwvhogue/6731625 to your computer and use it in GitHub Desktop.
Image resize job with color preservation on Joyent Manta.
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
time mfind /$MANTA_USER/public/art -n '1.jpg$' | mjob create --memory 2048 -w -m 'convert $MANTA_INPUT_FILE -colorspace RGB -resize 250000@ -colorspace sRGB -quality 80 /var/tmp/out.jpg && mpipe ${MANTA_INPUT_OBJECT%.*}_s.jpg < /var/tmp/out.jpg' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment