Closed jfqd closed 6 years ago
FYI: ghostscript packages are installed by this mibe: https://github.com/jfqd/mi-qutic-ruby24/blob/master/packages which is based on this mibe: https://github.com/jfqd/mi-qutic-base/blob/master/packages
I looked at reproducing this, and noticed that your command option -sDevice=pngalpha
is spelled incorrectly, it should be -sDEVICE=pngalpha
. With that changed it works for me. As for why it works on macOS, this is likely because the Mac will perform case-insensitive matching.
Can you confirm?
Unbelievable! You are right! Thanks a lot for figuring this out!
I am struggling to generate a png from a given pdf with ghostscript 9.23 (agpl) on SmartOS 2018Q1.
gs -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDevice=pngalpha -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r300x300' -dFirstPage=1 -dLastPage=1 -sOutputFile=a.png a.pdf
Outputs:
If I set
export GS_DEVICE=display
before, I get the following output:Running the same command on my macOS 10.13 with the brew installed ghostscript works fine:
The following packages are installed on the SmartOS vm:
What am I doing wrong? Are any dependent packages missing? Or is the build broken?