Image Delivery Optimizer

Paste a page and see every image's loading problems: missing dimensions, a lazy hero, no srcset, old formats, oversized files, then copy the img tags with the fixes applied.

Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya

…

Cara melakukannya

  1. 1
    Paste the page

    Paste the HTML source and enter the page URL so image paths resolve.

  2. 2
    Set the fold

    Enter how many images are visible on first load and the screen density to plan for.

  3. 3
    Add data

    Press Measure image files and open a HAR file for real sizes.

  4. 4
    Read the table

    Review each image's findings and type display widths where needed.

  5. 5
    Apply fixes

    Pick the fix switches in Fixed HTML and copy the rewritten tags.

  6. 6
    Export

    Download the image audit as CSV to share with designers and developers.

Tentang alat ini

Images are usually the heaviest part of a page and often its Largest Contentful Paint element, so the way each img tag is written changes both speed and stability. This optimizer reads every img in pasted HTML, including those inside picture elements, and checks the attributes that matter. Images without width and height or an aspect-ratio cause layout shifts. A hero image with loading=lazy is fetched late and delays LCP, while images further down without it waste bandwidth. The first image should usually carry fetchpriority=high, and nothing below the fold should. Large images without srcset send desktop files to phones, and a srcset with width descriptors but no sizes makes the browser assume the image fills the screen. JPEG, PNG and GIF files without a WebP or AVIF source are listed with an estimated saving. Missing alt attributes are flagged too. You set how many images sit above the fold and the screen density to plan for. Two optional inputs make the audit sharper: a HAR file gives the real transfer size of each image, and Measure image files reads each image's pixel size.

Oversized files

When the pixel size is known, each image is compared with its display slot. The slot width is taken from the width attribute or from the value you type in the table, multiplied by the screen density. A 4,000 pixel photo shown 1,200 pixels wide needs only 2,400 pixels on a 2x screen, and the saving is estimated from the area ratio and the real byte size.

Savings estimates

Format savings use simple rules of thumb for converting to WebP at similar visual quality: about 30 percent off JPEG, 40 percent off PNG photos and 50 percent off GIF. Real results vary with the image, so treat the totals as a way to rank work, not a promise.

Fixed HTML

Four switches control the rewrite: add width and height from the measured files, lazy load only below the fold (and remove lazy from images above it), add fetchpriority=high to the first image, and add decoding=async below the fold. Only the img start tags are changed and every other byte stays as it was.

Limits

The page does not convert, compress or resize images; that belongs in your build pipeline, image CDN or an image converter. CSS background images and images inserted by scripts after load are not in the HTML and are not audited. Measuring loads each image straight from your site into this tab, so hotlink protection or wrong paths can make some measurements fail.

Contoh berselesaian

The sample page has 6 images and 2 above the fold. The logo is first but has no fetchpriority=high. The 1,200 by 600 hero is lazy loaded, which is an error above the fold. Measuring shows the hero file is 4,000 pixels wide, and a HAR shows it weighs 391 KB; on a 2x screen it needs 2,400 pixels, so resizing saves about 250 KB, and WebP would save about 117 KB more, about 367 KB in total. banner.gif has no width, height or alt. The fixed HTML removes lazy from the hero, adds width 600 and height 200 to the logo with fetchpriority=high, and lazy loads the GIF.

Ringkasnya

Soalan lazim

Should every image be lazy loaded?

No. Images visible on first load, especially the LCP image, should load normally. Lazy load only images below the fold, which is what the fix switch does.

Why do width and height matter with responsive CSS?

Browsers use the two attributes to work out the aspect ratio before the file arrives, so they reserve the right space even when CSS sets the width to 100 percent.

What does fetchpriority=high do?

It tells the browser to fetch that image early, ahead of other images. Use it on the one LCP image; using it everywhere cancels the effect.

How are savings worked out?

Resizing savings use the share of pixels you can drop, multiplied by the real file size from your HAR. Format savings use average WebP conversion ratios and are labelled as estimates.

Why did measuring fail for some images?

Usually the page URL is missing so relative paths cannot be resolved, the path is wrong, or the server blocks images requested from other sites.

Is anything uploaded?

No. The HTML and HAR are read in this tab, and measuring loads images directly from your own site without any proxy.

Percuma sepenuhnyaTiada bayaran, tiada pendaftaran
Fail kekal peribadiSemuanya berjalan dalam pelayar anda
Mudah dalam bahasa andaTersedia dalam banyak bahasa