Images are usually the heaviest part of a web page, and a heavy page loads slowly. Slow loading affects both visitors and search performance, because page experience is one of the signals Google looks at. If your PageSpeed Insights report keeps listing "Serve images in next-gen formats" or "Properly size images", this guide explains what those warnings mean and how to fix them without uploading your files to someone else's server.
How Images Affect SEO and Core Web Vitals
Google measures page experience through the Core Web Vitals. Two of them depend heavily on images:
- Largest Contentful Paint (LCP): how long the biggest visible element takes to appear. On many pages that element is the hero image. Google's guidance is that a good LCP is 2.5 seconds or less.
- Cumulative Layout Shift (CLS): how much the layout jumps while the page loads. Images with no declared size are a common cause.
An uncompressed 4 MB photo straight from a stock site or a phone camera is the usual reason the LCP score fails.
Choosing the right format
- JPEG: still a good choice for photographs. A moderately compressed JPEG usually looks the same as the original at a fraction of the size.
- PNG: use it when you need transparency or sharp flat graphics. A photograph saved as PNG is far heavier than it needs to be.
- WebP: supports both photographs and transparency. Google's own WebP documentation reports lossy files around 25-34% smaller than comparable JPEGs and lossless files around 26% smaller than PNGs. All major browsers support it today.
- AVIF: compresses even better than WebP in many cases, but encoding is slower and tool support is less universal, so check your own audience and workflow before relying on it.
How to Compress Images Without Losing Quality
Compression is a trade-off, and the common mistake is pushing the quality setting too low. Over-compressed images show blocky areas, fuzzy edges around text and "banding" in smooth gradients such as skies. The fix is to compare the original and the compressed version before you download, rather than guessing a quality number.
The AioGalaxy Image Compressor includes a before-and-after comparison slider so you can check the result at full zoom. If you see noise around text or sharp edges, raise the quality a little; if you cannot see a difference, you can usually compress further.
Keep your files private
Many online compressors upload your image to their servers for processing. That is not always a problem, but it matters for client work, product launches or personal photos. The AioGalaxy image tools process files in your browser, so the image is not sent to our server. For anything confidential, prefer a tool that works this way and always read the privacy policy of any service you use.
Fixing LCP and CLS
- Compress the hero image first. It is usually the LCP element. Aim for the smallest file that still looks sharp on your page.
- Resize to the display size. A 4000-pixel-wide photo shown in a 1200-pixel column wastes bandwidth. Export it at the size you actually use.
- Declare width and height on every image tag so the browser reserves space and the layout does not jump.
- Lazy-load images below the fold with
loading="lazy", but not the hero image, which should load right away.
Dealing with HEIC photos from iPhones
iPhones save photos as HEIC by default, and many websites and tools do not accept that format. Instead of emailing photos to yourself to get a JPEG, convert them to WebP or JPEG before uploading. Our image tools do not open HEIC files yet. On an iPhone, go to Settings, then Camera, then Formats, and choose Most Compatible. New photos will then be saved as JPG, and you can use them in the tool.
Do not forget alt text
File size is only half the job. Search engines cannot see an image, so they rely on its file name, surrounding text and alt text. Write a short, accurate description of what the image shows, and use a descriptive file name such as red-running-shoes-side-view.webp instead of IMG_4021.jpg.
A simple workflow
- Resize the image to the size you will display.
- Convert it to WebP, or JPEG for photos if you need maximum compatibility.
- Compress it and compare with the original.
- Give it a descriptive file name and alt text.
- Upload it, then re-test the page in PageSpeed Insights.
Optimizing images before you upload them keeps your server and backups lighter and works the same way whichever CMS you use. The aim is not the smallest possible file, it is the smallest file that still looks good on a modern, high-resolution screen.
Comments
No comments yet — be the first to share your thoughts.