Images are usually the heaviest part of a corporate website: product galleries, team photos, service banners, portfolio screenshots. If each photo weighs 2–3 MB unoptimized, your page loads slowly, visitors leave and Google penalizes metrics like LCP (Largest Contentful Paint). The good news: you can reduce that weight by 70–80% without the human eye noticing any quality loss.
Image optimization is not a developer trick: it is a business decision. A site that loads in under 2.5 seconds converts more, ranks better and looks professional. At aatsoft, a web development agency in Manresa (Barcelona), we optimize images in every project we launch and maintain; in this guide we explain which formats to use, how to compress without losing quality and which tools to apply.
Why heavy images cost you visits and rankings
Every image you upload travels from your server to the visitor's browser. If that transfer takes too long, three problems occur:
- Immediate abandonment. 53% of mobile users leave a page that takes more than 3 seconds to load, according to Google data.
- Red Core Web Vitals. LCP measures how long the largest on-screen element takes to appear. If it is a 4 MB hero image, you will almost certainly exceed the 2.5-second threshold.
- Higher mobile data usage. Visitors on 4G or limited data plans perceive your site as slow and poorly maintained.
Image formats: JPEG, WebP, AVIF and PNG
Not all formats serve the same purpose. Choosing the right one is the first optimization step:

- JPEG. The standard for photographs. Good lossy compression, compatible with all browsers. Ideal for team, product and real-world photos.
- WebP. Up to 30% lighter than JPEG at the same quality. Compatible with 97% of current browsers. Use as primary format with JPEG fallback.
- AVIF. The most efficient format today: up to 50% less weight than JPEG. Growing support but not yet universal; useful as an additional layer.
- PNG. Lossless, perfect for logos, icons and graphics with transparency. Avoid for photographs: much heavier than JPEG.
How to optimize images step by step
- Resize before uploading. Do not upload a 4000×3000 px photo if your site displays it at 800×600. Scale to the maximum size you need plus 20% margin for retina screens.
- Compress at 75–85% quality. Below 70% artifacts appear; above 90% savings are minimal.
- Convert to WebP. Tools like Squoosh, TinyPNG or WordPress plugins do this automatically.
- Enable lazy loading. Images below the initial viewport do not load until the visitor scrolls.
- Use srcset and sizes. Serve different versions based on device screen width.
Tools to optimize your website images

- Squoosh (Google). Free, browser-based. Compare JPEG vs WebP vs AVIF in real time.
- TinyPNG / TinyJPG. Smart compression with minimal quality loss.
- ImageOptim (Mac). Drag folders and batch compress.
- WordPress plugins. ShortPixel, Imagify or Smush convert and compress on upload.
- CDN with automatic optimization. Cloudflare, Bunny CDN or imgix resize and convert on the fly.
Common mistakes when managing images on business websites
- Uploading the original camera photo. 8–12 MB per image unnecessarily.
- Using PNG for photographs. Triples the weight compared to optimized JPEG.
- Forgetting the alt attribute. Hurts accessibility and image SEO.
- Not setting width and height. Causes layout shifts (CLS) while loading.
- Optimizing only the homepage. Service and blog pages also load heavy images.
Optimized images and SEO: the direct connection
Google has used speed as a ranking factor since 2010 and Core Web Vitals since 2021. Optimizing images is the highest-return action to improve LCP without touching complex code. Additionally:
- Descriptive
alttexts help rank in Google Images. - Keyword-rich filenames (
kitchen-renovation-manresa.webp) provide context. - Light images improve mobile experience, where Google indexes first.
How we help at aatsoft
At aatsoft we integrate image optimization at every stage: automatic WebP conversion on upload, lazy loading, CDN and performance audits as part of website maintenance. If your site loads slowly, we check images before anything else.
Request a performance audit of your website and we will tell you, with no obligation, how much weight you can save. See our web development and maintenance services.