码迷,mamicode.com
首页 > 编程语言 > 详细

[zz]Python 3.4 and Pillow 2.4 with JPEG2000 (openjpeg 2) support in Ubuntu 14.04

时间:2014-08-21 18:35:14      阅读:363      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   strong   for   ar   div   html   

Pillow support for JPEG2000 comes from openjpeg 2 library. Unfortunatly, Ubuntu‘s libopenjpeg2 package is not version 2 of the openjpeg library, but actually version 1.3 which wont work with Pillow.

Installing Pillow 2.4 (pip install -I pillow) simply results in "OPENJPEG (JPEG2000) support not available".

Thus, it is needed to compile the openjpeg library 2.0 from source. For this, first lets download the openjpeg 2.0.1:http://downloads.sourceforge.net/project/openjpeg.mirror/2.0.1/openjpeg-2.0.1.tar.gz 

tar xzvf openjpeg-2.0.1.tar.gz 
cd openjpeg-2.0.1/ 
cmake . 
make 
sudo make install


Please note that we install version of openjpeg 2.0, rather than newer 2.1. Pillow wont recognize openjpeg 2.1 either.

Assuming everything went fine, we can reinstall Pillow:pip install -I pillow
If openjpeg 2.0.1 was detected successfully, we should get the following info "OPENJPEG (JPEG2000) support available" among others. 

bubuko.com,布布扣

 

 

NOTE: to install cmake, cmake-2.8.10.2.tar.gz

wget http://www.cmake.org/cmake/resources/software.html

[zz]Python 3.4 and Pillow 2.4 with JPEG2000 (openjpeg 2) support in Ubuntu 14.04,布布扣,bubuko.com

[zz]Python 3.4 and Pillow 2.4 with JPEG2000 (openjpeg 2) support in Ubuntu 14.04

标签:blog   http   io   strong   for   ar   div   html   

原文地址:http://www.cnblogs.com/sanquanfeng/p/3927494.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!