# Image audit for Adobe Experience Manager sites (`examsens.ai/aem-image-audit`) Actor

Your Adobe Experience Manager page fills in slowly. This actor lists each image's download size, the images downloaded much wider than they're shown, large images with no set of smaller sizes for phones, and images with no alt text, and says how the site sent each one.

- **URL**: https://apify.com/examsens.ai/aem-image-audit.md
- **Developed by:** [Ed Rayyis](https://apify.com/examsens.ai) (community)
- **Categories:** Developer tools, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 1,000 page auditeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Image audit for Adobe Experience Manager sites

You open a page of your Adobe Experience Manager site and the photos fill in slowly, one after another. Give this actor that page and it tells you which images are the biggest downloads, which ones the browser downloads at more than twice the width it shows them at on the page, and which have no alt attribute, the text description a screen reader reads out in place of the image. It also reads each image's address and tells you which of three routes Adobe Experience Manager took to send it: a copy resized to the width the address asks for by the Core Components image service (addresses that contain `.coreimg.`), a copy from Dynamic Media, Adobe's image delivery service, along with any named crop it applies (a smart crop, such as `Large`), or a file taken straight from the asset library where Adobe Experience Manager stores your images (a DAM rendition).

The actor opens each page in a desktop browser window 1,366 pixels wide and scrolls to the bottom, so that the browser also downloads the images it fetches only when you scroll near them. It waits 3 seconds by default and then measures every image on the page.

### Use it for

- A page that feels slow. You get every image download over 300 KB, with its size.
- Thumbnails cut from full width photos, where the file is far wider than the space the page gives it.
- Images with no alt attribute, so you can fix them before an accessibility review finds them.
- After a move to Dynamic Media or to the Core Components Image component, seeing which images still come straight from the asset library.

### Sample

Input, two pages of Adobe's WKND sample site:

```json
{
  "urls": [
    { "url": "https://wknd.site/us/en.html" },
    { "url": "https://wknd.site/us/en/magazine.html" }
  ]
}
```

The run returned one row per page. Here's the row for the magazine page, trimmed: we left out the `status`, `finalUrl` and `otherImageRequests` fields, cut the `issues` lists to two images each, and kept one of the 10 images the actor measured in `images`, without its `altText`.

```json
{
  "type": "page",
  "url": "https://wknd.site/us/en/magazine.html",
  "ok": true,
  "imageCount": 10,
  "counts": {
    "altMissing": 0,
    "altEmpty": 2,
    "oversized": 7,
    "overByteLimit": 4,
    "largeWithoutSrcset": 0,
    "withSrcset": 8,
    "lazy": 10,
    "coreComponentsAdaptiveImage": 10,
    "dynamicMedia": 0,
    "smartCrop": 0,
    "damRendition": 0,
    "otherImageRequests": 4,
    "totalImageKB": 2682
  },
  "summary": "10 images in the page and 4 other image downloads, 2682 KB in all. 10 served by the Core Components adaptive image servlet, 0 by Dynamic Media (0 with a smart crop), 0 straight from a DAM rendition. 0 without alt, 2 with empty alt (marked decorative).",
  "issues": [
    {
      "check": "oversized",
      "count": 7,
      "images": [
        "https://wknd.site/us/en/magazine/arctic-surfing/_jcr_content/root/container/container/contentfragment/par1/image.coreimg.60.1600.jpeg/1660323789770/surfer-wave-02.jpeg (1091 px file shown at 260 px)",
        "https://wknd.site/us/en/magazine/san-diego-surf/_jcr_content/root/container/container/contentfragment/par1/image.coreimg.60.1600.jpeg/1660323790169/adobestock-164735399.jpeg (1092 px file shown at 260 px)"
      ],
      "message": "7 image(s) are downloaded more than 2 times wider than the width they're shown at, in a 1366 px wide window."
    },
    {
      "check": "overByteLimit",
      "count": 4,
      "images": [
        "https://wknd.site/us/en/magazine/san-diego-surf/_jcr_content/root/container/container/contentfragment/par1/image.coreimg.60.1600.jpeg/1660323790169/adobestock-164735399.jpeg (378 KB)",
        "https://wknd.site/us/en/magazine/guide-la-skateparks/_jcr_content/root/container/container/contentfragment/par2/image_copy.coreimg.60.1600.png/1660323783259/article-01-picture-01.png (846 KB)"
      ],
      "message": "4 image download(s) are larger than 300 KB."
    }
  ],
  "issueCount": 2,
  "images": [
    {
      "src": "https://wknd.site/us/en/magazine/_jcr_content/root/container/teaser_main.coreimg.60.1600.jpeg/1660323792132/adobestock-156407519.jpeg",
      "visible": true,
      "renderedWidth": 709,
      "renderedHeight": 534,
      "naturalWidth": 1120,
      "naturalHeight": 630,
      "bytes": 279101,
      "format": "jpeg",
      "alt": "text",
      "srcset": true,
      "sizes": false,
      "inPicture": false,
      "loading": "lazy",
      "coreComponentsAdaptiveImage": true,
      "adaptiveImage": { "quality": 60, "width": 1600 },
      "dynamicMedia": null,
      "smartCrop": null,
      "damRendition": null,
      "oversized": false,
      "overByteLimit": false,
      "largeWithoutSrcset": false
    }
  ]
}
```

Every image on both pages comes through the Core Components image service, and every one of them carries `loading="lazy"`, so the browser downloads it only when you scroll near it. On the magazine page, the browser shows 5 article thumbnails 260 pixels wide. Four of those files are 1,091 or 1,092 pixels wide, and the fifth is a PNG 653 pixels wide that weighs 846 KB on its own. Together the 5 thumbnails are 1,782 KB of the 2,682 KB of images the browser downloads for that page. On a page like this, start with the `overByteLimit` list, since it names the biggest downloads with the size of each.

### What it reports for each image

`renderedWidth` and `renderedHeight` give the size the browser shows the image at, and `naturalWidth` and `naturalHeight` give the size of the file it downloaded. `bytes` is the size of that file as it came over the network. `format` comes from the content type the server sent (`jpeg`, `png`, `webp`, `svg+xml` and so on).

`alt` reads `missing` when the image has no alt attribute at all, `empty` when it has `alt=""`, and `text` when it has a description, which goes in `altText`. An empty alt is correct for a decorative image: it tells a screen reader to skip the image. A missing alt is a fault, because some screen readers then read the file name aloud.

`srcset` is true when the image offers the browser a list of files at different widths to choose from, either on the image itself or on a `source` element in the same `picture` element. `sizes` says whether the image has a `sizes` attribute, and `inPicture` whether it sits inside a `picture` element. `loading` holds the image's `loading` value, such as `lazy`.

The delivery fields come from the image address:

- `coreComponentsAdaptiveImage` is true when the address carries `.coreimg.`. That's how the Core Components Image component asks the adaptive image servlet, its image service, for a resized copy when Dynamic Media isn't used. `adaptiveImage` gives the JPEG quality and the width the address asks for. The servlet doesn't upscale an image, so the downloaded file can be narrower than the width in the address.
- The actor fills in `dynamicMedia` for an Image Serving address (a path with `/is/image/` followed by the company and the asset name), with its host, company, asset and any image preset written as `$preset$` in the query. The actor fills it in for a Dynamic Media with OpenAPI address too (`/adobe/assets/` followed by an asset ID that starts with `urn:aaid:aem:`).
- `smartCrop` names the smart crop the address asks for: the name after a colon at the end of an Image Serving asset name (such as `:Large`), or the value of the `smartcrop` parameter on a Dynamic Media with OpenAPI address. A `:Swatch` request, which asks for a color swatch, isn't counted.
- `damRendition` holds the file name when the address points straight into an asset's renditions folder (`/_jcr_content/renditions/`) or names one of the copies Adobe Experience Manager generates, such as `cq5dam.web.1280.1280.jpeg`.

Image downloads that no `img` element on the page uses, such as CSS backgrounds, icons and tracking pixels, go in `otherImageRequests` with their address, size, format and delivery fields.

### Issues it flags

`altMissing` lists images with no alt attribute at all. Images with `alt=""` aren't flagged, and the actor counts them in `altEmpty`.

`oversized` lists images whose downloaded file is more than the oversize factor (2 by default) times wider than the width the browser shows them at. SVG files never count here, since a vector image has no pixel width to waste.

`overByteLimit` lists every image download larger than the byte limit per image (300 KB by default), the downloads in `otherImageRequests` included.

`largeWithoutSrcset` lists images shown wider than the width that needs a srcset (400 pixels by default) that offer the browser no list of files to choose from. The browser then downloads the same file on a phone as on a desktop.

### Input

- Page addresses (required)
- Oversize factor (default 2), byte limit per image in KB (default 300), width that needs a srcset in pixels (default 400)
- Seconds to wait after scrolling (default 3), page timeout (default 45 seconds), pages at once (default 3)

### Output

One dataset row per page (`type: page`) with `url`, `ok`, `status`, `finalUrl`, `imageCount`, `counts`, `summary`, `issues`, `issueCount`, `images` (up to 200) and `otherImageRequests` (up to 100). Each issue lists up to 20 images. A page the actor can't open gets `ok: false` and an `error`. The `SUMMARY` record in the key-value store holds the number of pages, failed pages, pages with issues and images.

### Limits

- The actor measures sizes in one window, 1,366 pixels wide at a pixel ratio of 1. A phone or a high density screen picks different files from a srcset, so the oversized check holds for that window only.
- An image the page keeps hidden, such as a carousel slide that isn't showing, has a shown size of 0. It's listed with `visible: false` and left out of the `oversized` and `largeWithoutSrcset` checks, which need a shown width. If the browser downloaded it, its download still counts against the byte limit. If the browser never downloaded it, `bytes` and `format` are empty.
- The actor doesn't judge whether an image sits below the first screen, so it doesn't flag missing lazy loading. It reports each image's `loading` value instead.
- The delivery fields come from the image address alone. When a site rewrites its image addresses through its own proxy or CDN path, the addresses don't match the forms listed above, and those fields stay empty.

### Scope and conduct

The actor opens only public pages. It doesn't click, log in, fill in forms, accept consent banners or collect personal data, and it doesn't request any address the page itself doesn't load. Each page opens in a fresh browser context with no cookies carried over. It uses no proxies. Audit sites you're allowed to audit. Some sites refuse automated browsers, and a page that refuses the actor comes back with an error.

### Related actors

From the same account, for checking a site:

- [WCAG Checker: axe-core accessibility audit for pages and sites](https://apify.com/examsens.ai/wcag-checker)
- [Lighthouse Audit: bulk speed, SEO and accessibility scores](https://apify.com/examsens.ai/lighthouse-audit)
- [Site Audit: on page SEO and broken link checks](https://apify.com/examsens.ai/site-audit)

### Support

Questions and problems: the Issues tab on this page.

This actor is not affiliated with, authorized, endorsed or sponsored by Adobe. Adobe Experience Manager is a trademark of Adobe.

# Actor input Schema

## `urls` (type: `array`):

Public pages to open.

## `oversizeFactor` (type: `integer`):

An image is flagged as oversized when its file is more than this many times wider than the width it's shown at.

## `maxImageKilobytes` (type: `integer`):

An image download larger than this is flagged.

## `srcsetMinWidth` (type: `integer`):

An image shown wider than this with no srcset is flagged.

## `settleSecs` (type: `integer`):

The actor scrolls each page to the bottom so lazy images load, then waits this long before it measures.

## `timeoutSecs` (type: `integer`):

A page that doesn't finish loading in this time is reported as an error.

## `maxConcurrency` (type: `integer`):

How many pages are opened in parallel.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://wknd.site/us/en.html"
    }
  ],
  "oversizeFactor": 2,
  "maxImageKilobytes": 300,
  "srcsetMinWidth": 400,
  "settleSecs": 3,
  "timeoutSecs": 45,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        {
            "url": "https://wknd.site/us/en.html"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("examsens.ai/aem-image-audit").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [{ "url": "https://wknd.site/us/en.html" }] }

# Run the Actor and wait for it to finish
run = client.actor("examsens.ai/aem-image-audit").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    {
      "url": "https://wknd.site/us/en.html"
    }
  ]
}' |
apify call examsens.ai/aem-image-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,examsens.ai/aem-image-audit"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/epvxmu4tqIBkuUcxn/builds/kt4CV9ybOsl9EdAWZ/openapi.json
