[reportlab-users] Failing to import a JPEG
Andy Robinson
andy at reportlab.com
Wed May 18 11:35:51 EDT 2016
Try leaving PIL completely out of it and just passing in the
filename....JPEGs can be inlined into the PDF directly...
def drawImage(self, image, x, y, width=None, height=None, mask=None,
preserveAspectRatio=False, anchor='c'):
"""Draws the image (ImageReader object or filename) as specified.
"image" may be an image filename or an ImageReader object.
- Andy
On 18 May 2016 at 16:29, Dinu Gherman <gherman at darwin.in-berlin.de> wrote:
> I’ve also tried using an older reportlab installation, and got the same result. Now I admit I’ve forgotten quite a bit about using reportlab, but I’d assume what I want here this is very basic. And no, there is no difference between a „plain“ Python environment and Miniconda. The latter is simply Continuum’s Anaconda distribution of Python without the 3GB of batteries included.
>
> Cheers,
>
> Dinu
>
>> Andy Robinson <andy at reportlab.com>:
>>
>> Hi Dinu,
>>
>> (Adopting the lazy/busy approach of asking a question back to buy
>> time, while I google miniconda....)
>>
>> Does the same code with the same jpeg file work OK in a plain,
>> pip-install-reportlab Python environment?
>>
>> - Andy
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
More information about the reportlab-users
mailing list