This question already has an answer here:
Google Pagespeed: How to satisfy the new image compression rules?
How to compress jpeg images for Google Page Speed Insights? [duplicate]
How to satisfy GSPI's "loss of compression …" image optimization criteria? [duplicate]
How can I replicate the lossless image compression of Google Page Speed as part of my workflow?
My website is extremely slow.
One of the main reasons for the slowness is due to the large images in the headings of the pages.
I have been advised to compress them.
How would you do to compress the images without ruining the quality or changing the dimensions of the site?