Skip to content

Instantly share code, notes, and snippets.

@williamespindola
Forked from sophiaphillipa/delegates.xml
Created April 25, 2016 21:23
Show Gist options
  • Save williamespindola/1138169c326b3fac531142045dc46931 to your computer and use it in GitHub Desktop.
Save williamespindola/1138169c326b3fac531142045dc46931 to your computer and use it in GitHub Desktop.
ImageMagick how to convert EPS to PNG with Quality and Transparency

#ImageMagick EPS to PNG - With Quality and transparency#

Command line examples:

With resize: convert -density 300 example.eps -profile /root/ISOcoated_v2_300_SmartS.icc -profile /root/sRGB_NBS_SmartS.icc -resize 460x460 example.png

Without resize convert -density 300 example.eps -profile /root/ISOcoated_v2_300_SmartS.icc -profile /root/sRGB_NBS_SmartS.icc example.png

Simple mode just converts without profile convert -density 300 example.eps example.png

<!--
Must pass this commands to GS: -dUseCIEColor -sDEVICE=pngalpha
-->
<delegate decode="ps:cmyk" stealth="True" command="&quot;gs&quot; -q -dQUIET -dUseCIEColor -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pngalpha&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot; &quot;-f%s&quot;"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment