[scribus-dev] python: Pillow?

dockattt katttdoc at gmail.com
Sun Nov 11 00:18:42 UTC 2018


I think you just have the option of importing from PIL.  I haven't seen 
anything about importing from a Pillow package:

https://pillow.readthedocs.io/en/stable/reference/Image.html



On 11/10/18 6:13 PM, Gregory Pittman wrote:
> On 11/10/18 6:59 PM, Gregory Pittman wrote:
>> On 11/10/18 6:48 PM, dockattt wrote:
>>> hi everybody,
>>>
>>> I was just curious if anyone has ever talked about adding the Python package "Pillow" to Scribus.  It's a fork of PIL(Python Image Library).  I was able to import it into the Scribus python by adding it's path from a different python to the sys.path list. I was using it to do some image stuff.  Maybe I have the right idea of just adding it to the path? ;)
>>>
>> I think it's supposed to be a substitute for PIL. I haven't used it, so I don't know how similar it is. Let us know if you find problems.
>>
> And another question is if a script asks for PIL, will finding Pillow on your system work too, or does the script need to be edited? One thing might be to alter the script to a try: else: syntax.
>
> Greg
>
>
> _______________________________________________
> scribus-dev mailing list
> scribus-dev at lists.scribus.net
> http://lists.scribus.net/mailman/listinfo/scribus-dev



More information about the scribus-dev mailing list