Image Audit Guide: Quickly List All Images on a Web Page

// instant digital delivery · prices in USD

Image Inventory – Export Page Assets

Why an Image Inventory Matters

Every website relies on images to convey information, showcase products, or create visual appeal. Over time, the collection of images can become disorganized: duplicate files, broken links, oversized graphics, and missing alt text may all creep in. An up‑to‑date inventory helps you spot these problems quickly, plan migrations to new CMS platforms, or simply keep the site lightweight for better performance.

Having a spreadsheet or JSON file that lists each image’s URL, natural width, natural height, and file size gives you a single source of truth. From there you can decide which files to compress, replace, or retire.

Preparing to Scan a Page

Before you start, make sure you have a modern Chromium‑based browser (Chrome, Edge, Brave, or similar). The page you want to audit should be fully loaded, including any lazy‑loaded images that appear after scrolling. Open the developer tools (press F12 or Ctrl+Shift+I) and navigate to the Console tab; this is where you can run a quick JavaScript snippet if you prefer a manual approach.

Step‑by‑Step Manual Method

  1. Open the page you want to audit. Scroll down so that all images that load on scroll become visible.
  2. Run a small script. Paste the following code into the console and press Enter:
    (() => {
    const images = Array.from(document.querySelectorAll(‘img’)).filter(img => img.offsetParent !== null && img.complete && img.naturalWidth > 0);
    return images.map(img => ({
    src: img.src,
    naturalWidth: img.naturalWidth,
    naturalHeight: img.naturalHeight,
    displayedWidth: img.width,
    displayedHeight: img.height
    }));
    })();
    This returns an array of objects, each describing one visible, successfully loaded image.
  3. Copy the result. Right‑click the array in the console, choose “Copy object”, then paste it into a text editor.
  4. Convert to CSV or JSON. If you need CSV, use an online converter or a quick spreadsheet paste. For JSON, simply save the copied text as .json.
  5. Validate the list. Scan the file for any URLs that look suspicious (e.g., placeholder images or broken links that still returned a 200 status). You can test each URL by opening it in a new tab.

This method works everywhere but requires a few manual steps and a tiny amount of JavaScript knowledge. It also does not automatically filter out hidden elements that are present in the DOM but not rendered; the script above handles that with the offsetParent check.

Using the Image Inventory – Export Page Assets Extension for One‑Click Audits

If you prefer a graphical solution, the Image Inventory – Export Page Assets extension provides a single button in the toolbar. After installing the Manifest V3 extension, click the icon while on any page. The tool instantly scans the DOM, removes broken links and hidden elements, and presents a table with each image’s natural width and height. With one additional click you can copy the entire inventory as CSV or JSON, ready for import into a spreadsheet or a migration script.

The extension requests only the activeTab permission, meaning it runs solely on the page you are viewing and never sends data elsewhere. Because it is MIT‑licensed and open source, you can review the code yourself or even customize it for your workflow.

Exporting and Using the Data

Whether you generated the list manually or with Image Inventory – Export Page Assets, the next step is to make the data useful. Here are common ways to leverage your image inventory:

  • Performance audit. Sort the CSV by natural dimensions and identify images that are larger than they appear on the page. Those are prime candidates for compression.
  • Accessibility check. Cross‑reference the list with your site’s alt‑text audit to ensure every image has descriptive text.
  • Migration planning. When moving to a new CMS, use the URLs as a checklist to confirm every asset has been transferred.
  • Content cleanup. Spot duplicate URLs or placeholder graphics that can be removed to reduce clutter.

After you have performed the desired actions, keep the CSV or JSON file in a version‑controlled folder. This creates a historical record of your site’s visual assets and makes future audits faster.

Tips for Ongoing Image Management

Conduct an image audit at least once a quarter, especially after major content updates. Automate the process by adding the Image Inventory – Export Page Assets extension to your browser’s toolbar and creating a simple bookmarklet that triggers the scan with a single click. Pair the audit with a build step that runs image‑optimisation tools (such as imagemin) on any files that exceed a size threshold.

By making image inventory a regular habit, you keep your site lightweight, improve SEO, and reduce the risk of broken visuals that frustrate visitors. The combination of a quick manual script and a dedicated extension gives you flexibility: use the script for one‑off checks, and rely on the extension for rapid, repeatable audits.

DeliveryDownload link right after checkout.

LicenseSee the License section above; a copy ships inside the pack.

SupportHelp center

// more from the workshop

You may also need