Git Product home page Git Product logo

Comments (6)

pcompassion avatar pcompassion commented on June 14, 2024

I have the same problem.

from django-avatar.

cahitonur avatar cahitonur commented on June 14, 2024

I used django-imagekit to resize them dynamically. Maybe it helps you too.

from django-avatar.

pcompassion avatar pcompassion commented on June 14, 2024

I fixed by reinstalling PIL http://obroll.com/install-python-pil-python-image-library-on-ubuntu-11-10-oneiric/

I pdb-ed , and in my case it was due to missing zlib library.

Thanks anyway for prompt response!

from django-avatar.

sergeny avatar sergeny commented on June 14, 2024

@pcompassion, thank you for the link!!! In my case, it was not properly resizing pictures --- even though it worked fine with 80x80 --- even though I had Pillow installed on my Mac. I tried on Ubuntu using these instructions for installing PIL, and it works great!
I'll repost it here, just in case the original page disappears.
Installing PIP on Ubuntu 11.10 Oneiric:

  1. sudo pip uninstall PIL

  2. Then you should install default Ubuntu packages
    sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev

  3. We should fix PIL path libraries by

    sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib

  4. Now we are ready installing PIL by :
    sudo pip install -U PIL

from django-avatar.

pcompassion avatar pcompassion commented on June 14, 2024

@Commentor glad to help. funny I googled this page for the same error for the new project.

from django-avatar.

brunobastosg avatar brunobastosg commented on June 14, 2024

I was having the same problem and followed @sergeny steps, but it didn't work. The path to the libraries are different in my computer and PIL failed to install. Here is what I had to do:

sudo pip uninstall PIL

sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev

sudo ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib
sudo ln -s /usr/lib/i386-linux-gnu/libfreetype.so /usr/lib
sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib

sudo pip install -U PIL --allow-external PIL --allow-unverified PIL

from django-avatar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.