99designs / colorific

Automatic color palette detection
ISC License
701 stars 55 forks source link

test.jpg decoder jpeg not available #25

Open thejae opened 9 years ago

thejae commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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.