Comments (7)
The selftest had an error and is showing wrong results, the other thing is just strange. I should work.
from pillow.
Exactly the same bug here with Python 3.2.3 and Ubuntu 12.10. I installed libjpeg8 and libjpeg8-dev to enable JPEG support, but there is an error saying jpeg encoder is not available.
from pillow.
PS: The bug only is only present on my AMD64 machine, jpeg encoder does work on my Intel32 based laptop (also with Python 3.2.3 and Ubuntu 12.10).
from pillow.
Well, this can explain a lot I think. I can confirm that my system is Intel with AMD64 architecture too.
Maybe expected that jpeg libs must be in folder like /usr/lib/i686-linux-gnu/libjpeg.so
, not where they are now (/usr/lib/x86_64-linux-gnu/libjpeg.so
)?
from pillow.
Yeap, look here:
Python 3.2.3 (default, Jun 25 2012, 23:10:56)
[GCC 4.7.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.processor()
''
And now check this in setup.py:
if platform.processor() == "x86_64":
_add_directory(library_dirs, "/lib64")
_add_directory(library_dirs, "/usr/lib64")
_add_directory(library_dirs, "/usr/lib/x86_64-linux-gnu")
else:
_add_directory(library_dirs, "/usr/lib/i386-linux-gnu")
from pillow.
I just applied your setup.py modifications and after a Pillow complete re-installation (removing build directory etc.) the jpeg encoder is finally working on my AMD64 machine. Thanks a lot!
from pillow.
I'm glad to hear that. Hope other distributions users will check this patch and it will be merged. Today I was moving my project to Py3.3 server and for another time I have faced this problem. Thanks for noting 'removing build directory', this helped me after I have installed libjpeg62-dev. After all, I hope Pillow's installation process will be improved at least with more friendly error messages.
from pillow.
Related Issues (20)
- `Image.fromqimage()` raises `TypeError` HOT 2
- `alpha_composite` works poorly with transparency
- Windows Docker / nanoserver support HOT 8
- Save GIF without loss of quality HOT 23
- scientific-python-nightly-wheels-publish triggered in fork HOT 1
- `ImageFont` claims to load font sizes in pixels but seems to use points? HOT 6
- Problems HOT 1
- Emf file is not handled correctly HOT 2
- Bitmap missing for glyph HOT 4
- ImportError: cannot import name '_imagingft' from 'PIL' HOT 7
- Cannot install Tkdesigner HOT 2
- Cannot install Tkdesigner HOT 14
- Add XMP writing HOT 4
- Add SVG Support Using PlutoSVG HOT 3
- ImageDraw.rounded_rectangle: wrong ValueError HOT 2
- Crash when using `Draw.text` with invalid type HOT 2
- ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (python3.7, PILLOW vers < 9.0) HOT 8
- Scale factor for resizing HOT 3
- `ValueError: encoding error 5` during WEBP encoding should be replaced with something more informative HOT 3
- Impossible to detect multi-images tiff pages HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pillow.