Using PILLOW on the App Engine instead of PIL

Turns out PIL seems to have a problem re-evaluating font heights. I ran into this problem with PIL in App Engine. Read more about this issue here.

however, I do not have this problem with PILLOW on my local machine. I can somehow work around this problem, but ideally I would use PILLOW instead of PIL for the application engine. Is it possible?

+3
source share
2 answers

No. PIL uses C-based modules as well as PILLOW. You can only deploy supported modules listed in third-party modules (e.g. numpy) that have C-based libraries on - https://developers.google.com/appengine/docs/python/tools/libraries27

+5
source

If you really need it, you can use a managed virtual machine and configure the necessary libraries, including python C-libraries such as a pillow.

Not that it was a simple solution. This affects scaling time (milliseconds to minutes according to Google), cost (you pay for the Cloud Compute Engine) and customization (you must specify the correct Docker container).

But it can be done.

0
source

All Articles