Skip to content

Instantly share code, notes, and snippets.

@CodeBrauer
Created March 24, 2015 13:55
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 CodeBrauer/5ff683d514b14f7bcd99 to your computer and use it in GitHub Desktop.
Save CodeBrauer/5ff683d514b14f7bcd99 to your computer and use it in GitHub Desktop.
Image conversion with IM
# Command 1
/usr/bin/convert \
-limit disk 20GB \
-limit memory 8GB \
-limit map 20GB \
-profile Profiles/ISOcoated_v2_eci.icc \
-profile Profiles/eciRGB_v2.icc \
input.tif \
-alpha transparent \
-clip \
-alpha opaque \
out.png 2>&1
# Command 2
/usr/bin/convert \
-limit disk 20GB \
-limit memory 8GB \
-limit map 20GB \
-profile Profiles/ISOcoated_v2_eci.icc \
-profile Profiles/eciRGB_v2.icc \
input.tif \
-alpha transparent \
-clip \
-alpha opaque \
-resize 800x600 \
web_out.png 2>&1
# Command 3
/usr/bin/composite
-gravity center \
watermark.png \
input.png \
watermarked_out.png
2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment