You are viewing limited content. For full access, please sign in.

Question

Question

Black Background on PNG

asked on March 8, 2021 Show version history

Does anyone know what might cause a PNG with a transparent background to appear with a black background instead of transparency when sent via email? I added a PNG to a form via some IMG SRC html and also defined the height and width, but when it gets emailed to someone during the business process, it appears as with a black background.

Having some experience with video editing, I've imported pngs to use before and found a similar issue. The fix was to update the png to 32-bit, which I've done, but it's still appearing as black. Any ideas? 

Original Image (also attached below if viewing the file details would help):

 

Image coming through on the email:

Nationwide Logo.png
0 0

Replies

replied on March 12, 2021 Show version history

It should be a bug(https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4151 )with the tool Forms 10.2 uses to generate to pdf, I can reproduce this with Forms 10.2 as well, but no longer be able to reproduce it Forms 10.4.5 as Forms has change the tool of generating pdf since Forms 10.4.3.

1 0
replied on March 12, 2021

Thank you both for your responses! I ended up playing around with the bit depth and the way the photo was saved (rgb, indexed, etc.) - I'm not even sure what I ended up with but somehow I got it to work, lol. Real scientific, I know. Thanks again!

0 0
replied on March 8, 2021

What version of Forms are you using? And for "image coming through on the email", do you mean you insert the image through the rich text editor of email body provides by Forms and then added attribute such as  "height="100px" width="300px"" to the img element? I did same thing, I can't reproduce it(although the height and width attribute do not take effect in the email).

0 0
replied on March 9, 2021

My apologies Xiuhong, I should have been more specific. We are on version 10.2.0.834. 

The image in question is embedded on the form itself via a custom html field:

 

 

All we're doing is attaching the completed form and emailing it via an email service task. The png that is showing up with a black background is on the form that is attached to the email, not in the body of the email. Hopefully that clarifies things!

0 0
replied on March 9, 2021

I haven't test this, but you could give something like this a try: 

<img src="https://www.cityofsouthlake.com/ImageRepository/Document?documentId=34268" width="270" height="80" style="background-color:white;" />

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.