0

I've been using Django Easy Thumbnails and it works very nicely in my local development server on Mac OS X. But I can't get it to run in my Ubuntu production environment. I get no errors (DEBUG is set to True), it just doesn't generate the image nor does it return the URL. I have no idea where to start debugging this.

Cristian Ciupitu
  • 20,270
  • 7
  • 50
  • 76
ip.
  • 3,306
  • 6
  • 32
  • 42
  • Have you installed **Pillow** on Ubuntu? – Cristian Ciupitu Apr 23 '14 at 19:59
  • of course, I have Pillow 2.3.0 installed – ip. Apr 23 '14 at 20:06
  • Also I don't think it is a problem with Apache because I get the same problem running the development server on Ububtu – ip. Apr 23 '14 at 20:08
  • I think the problem might be in the access to the media file folder. In development I use one, but on production it is served from a different location. – ip. Apr 24 '14 at 11:09
  • The image on my production server comes back as None – ip. Apr 24 '14 at 13:04
  • I've fixed the problem. The problem was with finding the location of the media folder which is different in production vs on the local dev server! – ip. May 03 '14 at 13:26
  • Would you mind telling us specifically how you solved it? I have the same problem – pyjavo Jan 02 '15 at 17:57
  • I solved it, but I wish I could remember how. It was a year ago. I believe it had something to with having the proper libraries in place. I would suggest you double check every detail of your installation, as well as checking permissions. – ip. Jan 04 '15 at 10:47

1 Answers1

0

Try installing the required packages:

sudo apt-get install libwebp4 libwebp4-dev libfreetype6 libfreetype6-dev libjpeg8 libjpeg8-dev liblcms1 liblcms1-dev libwebp4 libwebp4-dev
nathancahill
  • 10,452
  • 9
  • 51
  • 91