Handling Group4 TIFF images in python

前端 未结 2 2388
说谎
说谎 2020-12-21 04:18

PIL doesn\'t natively support G4 images, is there some other python package that does? I need to read multi-page TIFF images and pull convert them into gif/png on the fly t

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-21 05:03

    Using PythonMagick:

    from PythonMagick import Image
    Image('CCITT_4.TIF[0]').write("PNG8:CCITT_4.PNG")
    

提交回复
热议问题