Re: Failing to import a JPEG
Andy Robinson <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <CABjtAptCG+Lu5YSJziavHg3EHY1xCwrN1+4tzpqJGxAkgWjK3g@mail.gmail.com> |
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 <[email protected]> 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 <[email protected]>:
>>
>> 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
> [email protected]
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
_______________________________________________
reportlab-users mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/reportlab-users