Is there any way I could save the image produced offline directly to png/jpeg instead of viewing it on html?

Hello, guys, I’ve been using the plotly for a while and IT IS AMAZING.
However, I found it a little bit trouble that I have to view the picture I plot in html before I could manually download the graph as png, so I am here to ask whether there is a way that I could directly save the graph generated into png/jpeg instead of viewing it in html?
I see it in documents that offline.plot(fig, filename= ‘a.html’, image = ‘png’) could generate a offline html file including the picture, however I still have to open it by myself and download the png file instead of use it directly in other programs.
It would be cool if somebody could provide me with some suggestions.
thank you so much = )