Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install pre-built Pillow wheel with libraqm DLLs on Windows?

I tried using the pre-built wheels for Pillow and corresponding libraqm DLL from here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow

But the following returns False:

from PIL import features
features.check('raqm')

Am I missing anything?

Context: I need libraqm with Pillow to work with complex fonts on images, as shown here.

like image 384
Gokul NC Avatar asked Jul 16 '20 16:07

Gokul NC


People also ask

How do I find my pillow in CMD?

Use PIL. __version__ or Image. __version__ . The current free version is PIL 1.1.


1 Answers

For anyone who wants RAQM with PIL on Windows, just do pip install Pillow.

Then place the libraqm DLLs in some directory, and then append that directory to environment/shell variable PYTHONPATH. That's it.

Or you could place those DLLs along with your python.exe as commented by @cgohlke.


Just in-case someone wants to know, I'm currently on Python 3.7 (Windows 10) with Pillow 7.2.0 and libraqm-0.7.0.dll

like image 172
Gokul NC Avatar answered Oct 02 '22 03:10

Gokul NC