My website is extremely slow.

One of the main reasons for the slowness is due to large images in the headers of the pages.

I have been advised to compress them.

How would I go about compressing the images without ruining the quality or changing the dimensions on the site?