Skip to content
Free: label AI images under the EU AI Act in your browser.Open the tool
EN
AI-LabelAI images, EU AI Act
Integrations · MagentoUpdated 11 October 20266 primary sources

Labelling AI images in Magento and Adobe Commerce

The free widget adds the AI label required by Article 50 of the EU AI Act to marked images in Magento 2 and Adobe Commerce.

In Magento 2 and Adobe Commerce, paste the script tag under Content > Design > Configuration into the “Scripts and Style Sheets” field of the HTML Head section. For it to run in checkout as well, allow https://www.ai-label.app in the Content Security Policy.

Mark product images through the alt text in the “Images And Videos” section or with --ai in the file name.

Add the script tag

<script src="https://www.ai-label.app/widget.js" defer></script>
  1. In the Admin: Content > Design > Configuration.
  2. Click Edit in the row of the store view you want.
  3. Under “Other Settings”, expand HTML Head.
  4. Paste the script tag into “Scripts and Style Sheets”.
  5. Click Save Configuration, then refresh the invalidated caches under System > Cache Management.

The setting applies to the scope you chose. With several store views, for example one per language, check each of them.

Content Security Policy

According to Adobe, JavaScript in this field must be allowed in the Content Security Policy, otherwise it will not run on checkout pages. From version 2.4.7, payment pages use restrict mode and all other pages report-only mode. The allowlist entry goes into a csp_whitelist.xml file in the etc folder of a custom module:

<policy id="script-src">
    <values>
        <value id="ai-label" type="host">https://www.ai-label.app</value>
    </values>
</policy>

For languages other than German and English, the widget fetches a small text file from the same address. In that case, allow it for connect-src as well.

Mark images

Which images need a label is your decision, for example with the labelling check. The widget only labels marked images, in three ways that can be combined:

In Magento, the alt text of the product image is the easiest way. Open the product under Catalog > Products, click the image in “Images And Videos” and extend the “Alt Text” field. Alternatively, rename the file with --ai before uploading and check in the page source that the marker reaches the image address. Use the data-ai-label attribute in your own theme templates.

Pitfalls

Limits of the widget

Native app

A dedicated Magento app is planned. There is no date yet.

Get notified when the Magento app launches

We will email you once when the app launches.

Frequently asked questions

Why is the label missing in checkout?

Usually the Content Security Policy does not allow the script; from Magento 2.4.7, payment pages use restrict mode. Add https://www.ai-label.app under script-src in csp_whitelist.xml.

Does this apply to Adobe Commerce Cloud?

The route through HTML Head and the Content Security Policy is the same. How you deploy the module with csp_whitelist.xml depends on your deployment process.

Sources

Para. refers to the paragraph number in the European Commission's guidelines on Article 50, C(2026) 5054.

  1. Adobe Commerce: Page setup (HTML Head)Adobe · Platform · 15 Jun 2026
  2. Adobe Commerce: Content Security PoliciesAdobe · Platform · 11 Oct 2026
  3. Adobe Commerce: Manage product images and videosAdobe · Platform · 8 Oct 2026
  4. Adobe Commerce: Cache managementAdobe · Platform · 8 Oct 2026
  5. Code of Practice on Transparency of AI-Generated Content (final version)Europäische Kommission · Code of practice · 10 Jun 2026
  6. Regulation (EU) 2024/1689 (AI Act)EUR-Lex · Law · 12 Jul 2024

Label your first AI image

Free in your browser, with the EU icon and text in 24 languages. On Shopify, the app labels your whole store.