Docs / Manage My Site / Optimize Images

Optimize Images

How to optimize your images for a fast and visually impactful website.

Why should I optimize my images?

Images are typically the largest files on any website. Unoptimized images slow down page loading, hurt your Google ranking, and frustrate visitors — especially on mobile connections. Properly optimized images load faster, improve user experience, and boost your SEO score.

Here is what image optimization achieves:

  • Faster loading — optimized images can reduce page load time by 50% or more compared to uncompressed originals.
  • Better SEO — Google uses page speed as a ranking factor. Faster pages rank higher.
  • Lower bandwidth — smaller files mean less data transfer, which matters for visitors on metered connections.
  • Improved Core Web Vitals — Largest Contentful Paint (LCP), one of Google's key performance metrics, is directly impacted by image size.

What are the best image formats for the web?

Different image formats serve different purposes. Choosing the right format ensures the best balance between quality and file size.

  • WebP — the recommended format for most web images. WebP provides excellent compression with minimal quality loss. It is supported by all modern browsers and typically produces files 25–35% smaller than JPEG at the same quality.
  • JPEG — ideal for photographs and images with many colors. JPEG uses lossy compression, meaning some quality is sacrificed for smaller file sizes. Best for photos of people, products, and landscapes.
  • PNG — best for images that require transparency (logos, icons, graphics with transparent backgrounds). PNG uses lossless compression, so files tend to be larger than JPEG or WebP.
  • SVG — perfect for logos, icons, and simple graphics. SVG files are vector-based, meaning they scale to any size without losing quality. They are extremely lightweight.
  • AVIF — a newer format offering even better compression than WebP. Browser support is growing but not yet universal. Madra uses AVIF where supported and falls back to WebP or JPEG for older browsers.
Tip
When in doubt, send us your images in the highest quality available (JPEG or PNG). Our optimization system will convert them to the best format automatically.

Using the right dimensions prevents the browser from downloading unnecessarily large files. Here are the recommended sizes for common elements on a Madra website:

Image type Recommended width Max file size
Hero / banner 1920 px 300 KB
Content section 1200 px 200 KB
Blog article image 800 px 150 KB
Thumbnail / card 600 px 80 KB
Logo 400 px 50 KB
Favicon 128 px 10 KB
Open Graph (social sharing) 1200 × 630 px 200 KB

These are guidelines, not strict requirements. If you provide images that exceed these recommendations, our system will resize and compress them for you.

Does Madra optimize images automatically?

Yes. Every image on your Madra website goes through an automatic optimization pipeline. This process runs behind the scenes and requires no action from you.

Here is what happens automatically:

  • Format conversion — images are converted to WebP (with JPEG/PNG fallbacks for older browsers) for optimal compression.
  • Responsive sizing — multiple versions of each image are generated at different resolutions. The browser loads the version that best matches the visitor's screen size.
  • Compression — images are compressed to reduce file size while maintaining visual quality. The compression level is tuned for each image type.
  • Lazy loading — images below the fold (not visible when the page first loads) are loaded only when the visitor scrolls near them. This speeds up the initial page load.
  • Alt text — every image includes a descriptive alt attribute for accessibility and SEO. These are generated during site creation and can be customized on request.

How do I upload new images to my site?

If you want to replace an existing image or add new ones, you have two options:

Send images to our team

Email your images to hello@madra.io or upload them through your dashboard. Specify where each image should appear on your site. Our team will optimize and place them for you.

We optimize and publish

Our team processes your images through the optimization pipeline and updates your live site. This typically takes a few hours.

Image quality
Always provide the highest-quality version of your images. It is much easier to compress a high-quality image down than to improve a low-quality one. Avoid sending screenshots or images pulled from social media, as these are already heavily compressed.
Was this helpful?
On this page