Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

test.jpg decoder jpeg not available #25

Open
thejae opened this issue Jun 2, 2015 · 4 comments
Open

test.jpg decoder jpeg not available #25

thejae opened this issue Jun 2, 2015 · 4 comments

Comments

@thejae
Copy link

thejae commented Jun 2, 2015

I have been playing with Colorific since this morning and I still can't get it to work, am stuck at the decoder not available error message.

(colorific-sandbox)mb@colour:/var/www$ pip install pillow -I
Collecting pillow
Installing collected packages: pillow
Successfully installed pillow-2.8.1
(colorific-sandbox)mb@colour:/var/www$ echo t.jpg | colorific
t.jpg decoder jpeg not available

System Ubuntu 14.04 x64

@dhotson
Copy link
Contributor

dhotson commented Jun 2, 2015

Hi,

I think you might need to install a few extra ubuntu packages to get it working. e.g. try these:

pip uninstall Pillow
apt-get install libjpeg-dev
apt-get install zlib1g-dev
apt-get install libpng12-dev
pip install Pillow

@thejae
Copy link
Author

thejae commented Jun 2, 2015

Hello there! Thanks for the amazingly fast reply. Yes I got those installed already, actually if I run the selftest.py file that comes with PIL, I get a success message:

mb@colour:/var/www/Imaging-1.1.7$ python2.7 selftest.py
--------------------------------------------------------------------
PIL 1.1.7 TEST SUMMARY
--------------------------------------------------------------------
Python modules loaded from ./PIL
Binary modules loaded from /usr/local/lib/python2.7/dist-packages/PIL
--------------------------------------------------------------------
*** PIL CORE support not installed
*** TKINTER support not installed
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
*** FREETYPE2 support not installed
*** LITTLECMS support not installed
--------------------------------------------------------------------
Running selftest:
--- 57 tests passed.

Was colorific developed on RHEL?

@dhotson
Copy link
Contributor

dhotson commented Jun 2, 2015

Colorific was developed on ubuntu (12.04 from what I remember). I haven't tested on RHEL before.

I'm just doing some quick tests on ubuntu 14.10 at the moment...

This seemed to work for me:

virtualenv colorific-sandbox
. colorific-sandbox/bin/activate
apt-get install libjpeg-dev zlib1g-dev libpng12-dev python-dev
./colorific-sandbox/bin/pip install colorific
echo EolpfRH.jpg | colorific

EolpfRH.jpg #9da8b7,#242517,#322d2a,#656c74,#63544b

Are you using a virtualenv? Are you using the PIL or Pillow library?

@thejae
Copy link
Author

thejae commented Jun 2, 2015

Am using virtualenv. Tested using pip install Pillow at first then I uninstalled it to compile PIL.

I'll spin up a new 14.10 to test it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants