How do I download the image in jpeg with spcified resoloution?
Try
Plotly.downloadImage(graphDiv, {format: 'jpg', width: 800, height: 600, filename: 'newplot'});
More info -> https://plot.ly/javascript/plotlyjs-function-reference/#plotlydownloadimage