glexey / excel2img

Save ranges from Excel documents as images
Apache License 2.0
98 stars 26 forks source link

Chart Image has white borders #9

Open iLeandro opened 4 years ago

iLeandro commented 4 years ago

When trying to export a range of cells that contain a chart, the image chart cames with two white borders as shown in the image

test

The script is simply:

import excel2img

# Save as PNG the range of used cells in test.xlsx on page named "Sheet1"
excel2img.export_img("template.xlsx", "test.png", "Sheet1", "Sheet1!F2:M17")

The excel file is like this: Excel

I even tried to put white background, without borders and make the chart surpass a little the cells, but that two borders came anyway.