youcentre / java-html2image

Automatically exported from code.google.com/p/java-html2image
0 stars 0 forks source link

image file has blue background #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. convert the html to png 
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.
BufferedImage image= imageGenerator.getBufferedImage();
ImageIO.write(image,"jpg" , new File("d:/hello.jpg"));

Original issue reported on code.google.com by sunjie31...@gmail.com on 28 Dec 2012 at 8:27

Attachments:

GoogleCodeExporter commented 8 years ago
bad project.

Original comment by changese...@gmail.com on 27 Feb 2013 at 7:55

GoogleCodeExporter commented 8 years ago
could you fix it?

Original comment by l...@policymedical.com on 3 Mar 2014 at 8:30

GoogleCodeExporter commented 8 years ago
I have no idea how to fix it.

Original comment by sunjie31...@gmail.com on 6 Mar 2014 at 1:39

GoogleCodeExporter commented 8 years ago
In my case since I wanted an image with white background I just revomed all 
ocurrences of background-color declaration and it worked. I also simplified my 
html and css ensuring there is no css properties overwriting each other, this 
way the API worked as expected.

Original comment by l...@policymedical.com on 6 Mar 2014 at 1:45