Handling Group4 TIFF images in python

前端 未结 2 2078
说谎
说谎 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 04:51

    See this post about a patch against PIL, this project to wrap FreeImage, and this project to wrap libtiff.

    0 讨论(0)
  • 2020-12-21 05:03

    Using PythonMagick:

    from PythonMagick import Image
    Image('CCITT_4.TIF[0]').write("PNG8:CCITT_4.PNG")
    
    0 讨论(0)
提交回复
热议问题