Skip to content

Instantly share code, notes, and snippets.

@cwvhogue
Created September 27, 2013 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cwvhogue/6731625 to your computer and use it in GitHub Desktop.
Save cwvhogue/6731625 to your computer and use it in GitHub Desktop.
Image resize job with color preservation on Joyent Manta.
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