[reportlab-users] Transparent png
Arkadi Colson
arkadi at smartbit.be
Wed May 24 03:17:34 EDT 2017
I tried it and the result is this:
The black square should be a transparent image and looks like this:
Both are png images.
The first one which is appearing correctly is "PNG image data, 48 x 48,
8-bit/color RGBA, non-interlaced". The black square is "PNG image data,
48 x 48, 8-bit gray+alpha, non-interlaced".
Any idea why the "gray+alpha" isn't showing up correctly?
Thx!
On 23-05-17 18:37, Tim Roberts wrote:
> Arkadi Colson wrote:
>> Does anybody know if it's possible to use tranparent png images with the
>> code below:
>>
>> self.data[x][y] = Paragraph(
>> '<img src="' + filename + '"
>> valign="middle"/>', style=self.style_def)
> Wouldn't it have been quicker just to try it?
>
> Although I don't know the answer, I will point out that transparency has
> always been a tricky issue with PostScript and, by extension, PDF. Both
> standards were designed with paper and printing in mind, where
> transparency does not exist. Most professional print shops will not
> accept PDF files with embedded transparency, because it's not clear what
> that means.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20170524/f376a11f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opljdfgcmlemnhpk.png
Type: image/png
Size: 1324 bytes
Desc: not available
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20170524/f376a11f/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kaechbacfkgjfiai.png
Type: image/png
Size: 2180 bytes
Desc: not available
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20170524/f376a11f/attachment-0001.png>
More information about the reportlab-users
mailing list