Ghostscript color detection

前端 未结 2 2020
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 09:41

I seem to be unable to find whether Ghostscript is able to simply detect whether job is color or grayscale. I use Ghostscript for conversion of print jobs to PNG, but I also

2条回答
  •  余生分开走
    2020-12-24 10:06

    A new output device has rendered this answer outdated, see the Accepted Answer.


    Until 2011, the file needed to be rasterised to see an output. Since the PDF/PS is a description of what the file looks looks like which gets rendered whilst rasterised. Even if you could do this with ghostscipt I am sure it would need to rasterize/interpret the file first then look at the output, so if you have the png's you might as well do this yourself, which will be less cpu intensive than processing the file again with GS.

提交回复
热议问题