Issue with white Logo on transparent background #1326
-
Hi, I tried to create PNG files from 2 files which can be downloaded from following URL: Result is not same as in Photoshop - in Photoshop images are white logos on transparent background, but PNG`s created with usage of MagickImage contained only one color - on one case only white, and in second - only transparent. Here is code snippet used to create PNGs:
Is it possible to rasterize used AI and PDF to PNG with two colors - white and transparent? Thanks in advance! Kind regards, Mirko |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Adding images here instead: images.zip |
Beta Was this translation helpful? Give feedback.
-
This library uses Ghostscript and it seems that it decides to use a white background. We are using the following options:
This is executed through a library or on the command line with |
Beta Was this translation helpful? Give feedback.
This library uses Ghostscript and it seems that it decides to use a white background. We are using the following options:
-q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dPrinted=false "-sOutputFile=out.png" 1.ai
This is executed through a library or on the command line with
gswin64c.exe
. If you figure out which option should be added to change the background then I might be able to integrate that into ImageMagick.