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 · ShopwareUpdated 11 October 20265 primary sources

Labelling AI images in Shopware

The free widget adds the AI label required by Article 50 of the EU AI Act to marked images in Shopware 6.

In Shopware 6 you add the widget to the page head through a plugin or your own theme. The developer documentation uses the block layout_head_javascript_hmr_mode in meta.html.twig for this.

Mark images under Content > Media, with “(AI-generated)” at the end of the alt text or --ai in the file name.

Add the script tag

<script src="https://www.ai-label.app/widget.js" defer></script>

For custom scripts, the Shopware developer documentation describes a plugin. It extends the template storefront/layout/meta.html.twig, which holds the page head, and appends the script tag to the block layout_head_javascript_hmr_mode:

{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% block layout_head_javascript_hmr_mode %}
    {{ parent() }}
    <script src="https://www.ai-label.app/widget.js" defer></script>
{% endblock %}

The file goes into the plugin at src/Resources/views/storefront/layout/meta.html.twig. Without {{ parent() }}, Shopware's own scripts are missing. Without development, an extension for custom scripts from the Shopware Store does the same. Then clear the shop cache and open a product page with a marked image. The label appears in the top right corner of the image.

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 Shopware, mark images in the media manager under Content > Media, where you can change the name, alt text and meta title of every file. Product images point to these files, so the marking usually applies to the product page and the listing at once.

The data-ai-label attribute is only worth it in your own Twig templates, for example for a banner image in the theme.

Pitfalls

Limits of the widget

Native app

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

Get notified when the Shopware app launches

We will email you once when the app launches.

Frequently asked questions

Where do I add the script tag in Shopware?

In a plugin or theme that extends the block layout_head_javascript_hmr_mode, or with an extension for custom scripts. In a text element, the HTML sanitizer removes the script.

Do I have to mark every product image?

Yes, file by file, through alt text or file name.

Sources

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

  1. Shopware Developer: Add JavaScript as script tagShopware · Platform · 11 Oct 2026
  2. Shopware 6: HTML sanitizerShopware · Platform · 11 Oct 2026
  3. Shopware 6: Content, mediaShopware · Platform · 11 Oct 2026
  4. Code of Practice on Transparency of AI-Generated Content (final version)Europäische Kommission · Code of practice · 10 Jun 2026
  5. 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.