-
-
Save CodeBrauer/5ff683d514b14f7bcd99 to your computer and use it in GitHub Desktop.
Image conversion with IM
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
# 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