How can I extract color values from an EPS file?

后端 未结 2 1630
无人及你
无人及你 2021-01-16 01:23

I\'m trying to find all fill and stroke values used in an EPS file. I can parse the file, I just can\'t figure out how color values are defined in the EPS postscript section

2条回答
  •  死守一世寂寞
    2021-01-16 02:00

    the size of the bit image should not really matter if all you do is get a histogram and throw it away:

     pstopnm -stdout file.ps | ppmhist
    

    I assume everyone has netpbm...netpbm.sourceforge.net

提交回复
热议问题