8
votes

I'm creating a PDF using the Wkhtmltopdf library.

Everything is working fine, except one little detail: I overlap two images with transparent background to another background image.

This is the result:

The background image is the one with the trees and the sky, each character is in a different image with transparent background. So the result is quite perfect except for the grey border around each person.

Is it possible to remove it?

1
Have you found a fix for this ?SlimIT
@SlimIT I noticed that the problem came out when I created the PDF on a Windows machine. Then I switched to a Ubuntu Server machine and tried to generate. The problem with border has disappeared.s.milziadi
I already work on Ubuntu server. Can you check what version of wkhtmltopdf do you have ? Now I have escaped the problem by converting images to jpg.SlimIT
@Sebus do you have a link to your issue that's similar to this? I can almost certainly resolve this, it's probably related to the image type, but either way, I'll look at it tonight.njfife
No link, sorry. I have the issue with a white circle on a transparent background. Inside the white circle is the company logo. When I remove the with circle, everything looks fine.Sebus

1 Answers

0
votes

Quick fix: Load image in gimp, go to layers -> transparency -> remove alpha layer. Re-export image as PNG and try the conversion again.