Image audit for Adobe Experience Manager sites avatar

Image audit for Adobe Experience Manager sites

Pricing

from $9.00 / 1,000 page auditeds

Go to Apify Store
Image audit for Adobe Experience Manager sites

Image audit for Adobe Experience Manager sites

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.

Pricing

from $9.00 / 1,000 page auditeds

Rating

0.0

(0)

Developer

Ed Rayyis

Ed Rayyis

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

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:

{
"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.

{
"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.

From the same account, for checking a site:

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.