TCPDF img src black and white

enzo.orsi 05 Jan, 2016
I am using this code in TCPDF but the image in PDF is in black&white...not colored...
It is normal?

<img src="/images/logo_big.png" alt="LegaleSemplice.it style="width:300px">
GreyHead 05 Jan, 2016
Hi enzo.orsi,

No, there is nothing I know of in ChronoForms or the TCPDF action that will change the color of the image. Please double check that you have linked to a coloured version.

Bob
enzo.orsi 05 Jan, 2016
No, I do not have any B&W images, I am sure that it is colored...
But in the PDF it is black & white only...
GreyHead 05 Jan, 2016
Hi enzo.orsi,

Please post a link to the form so I can take a quick look.

Bob
enzo.orsi 07 Jan, 2016
In the attachment, there is a TCPDF: in the first row there is:
<img src="/images/logo_big.png" alt="LegaleSemplice.it" style="width:300px">
, that results always black and white...

This is private content

GreyHead 07 Jan, 2016
1 Likes
Hi enzo.orsi,

I can't work out how to get your form to submit - I tested in another form and the image shows up correctly in color with this code in the template
<p><img src="http://www.legalesemplice.it/images/logo_big.png" /></p>


Bob
enzo.orsi 07 Jan, 2016
Mmm...I do not know why but it was still not working.
I changed the picture, from png (with transparent colour) to jpg and still nothing.
Than I created the img by scretch in jpg and it is working perfectly...

It seems that it is not working in png with transparent colour...

In any case, thank you very much Bob for your support!
GreyHead 07 Jan, 2016
Hi enzo.orsi,

Here's the test pdf I created - you can see your png image in there. There's a lost of test code there to - please ignore that.

Bob
enzo.orsi 07 Jan, 2016
I don't know...by the way, now in jpg is working...
This topic is locked and no more replies can be posted.