Skip to content

Instantly share code, notes, and snippets.

@sophiaphillipa
Last active May 31, 2023 15:18
Show Gist options
  • Save sophiaphillipa/992f57c321a7090d11f2 to your computer and use it in GitHub Desktop.
Save sophiaphillipa/992f57c321a7090d11f2 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

<!--
To dicovery where is delegates convert -list delegate
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