Cell output images saved as jpeg instead of png?

Is there a way, when you execute a cell in a ipynb file, to get the image saved as a jpeg instead of png? I’m asking because I have a notebook with loads of images, which, when I export to html takes ages to load because of all the pngs. I’d like a smaller file size for my images.