I am using the module matplotlib to create pie charts in picture format. All fine with the charts until the moment I use the .png as images on HTML pages. I need to resize them for 4 or 5x smaller in the html code (because thy are to big to use them straight away) but then it's not possible to read the legends /values. They become distorted.

I am using 

```
plt.savefig('filename.png', dpi = 300) 

```

to save the pngs. Already increased the dpi do 1800 but the issue remains.

Please advise. Thanks.