Pillow and JPEG2000: decoder jpeg2k not available

前端 未结 3 450
终归单人心
终归单人心 2020-12-18 10:40

I\'m trying to set up Flask-IIIF to work with jp2-files, or JPEG2000. Right out of the box I get an error from the Pillow library: IOError: decoder jpeg2k

3条回答
  •  心在旅途
    2020-12-18 10:51

    Pillow needs the OpenJPEG library to decode JPEG2000 files. libjpeg only deals with regular JPEGs.

    See the note in the Pillow docs at the end of this section: http://pillow.readthedocs.io/en/latest/handbook/image-file-formats.html#jpeg-2000

提交回复
热议问题