Magento Image ALT Text from Product Attributes Module

Generuj teksty ALT zdjęć w Magento 2 według struktury opartej na danych produktów. Dostępne są też osobne ustawienia dla pustych ALT obrazów CMS.
Compatibility
2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.7, 2.3.6, 2.3.5, 2.3.4
€0.00
Email to a Friend

Enquire about this product

Description / Magento Image ALT Text from Product Attributes Module

Automatic ALT Text Based on Product Data

Use information already stored in the Magento catalog to create alternative text for images. Kowal Image Alt From Attributes generates ALT text according to the selected structure, eliminating the need to prepare each text manually.

Images can provide an additional source of organic traffic, complementing other SEO efforts. The previous description cited a figure indicating that nearly 38% of pages in Google search results contained images and predicted that this share would increase. This information has been retained from the previous description; it is not a currently verified statistic or a forecast of store performance.

How ALT Text Is Generated

In the configuration, you select a structure using the available placeholders. The module retrieves product data and combines its values into text associated with the image. Example structure: {product_name} {product_sku} {product_color}.

  • Product name, SKU, and final price.
  • Category names and parent category.
  • Size, color, and manufacturer when the corresponding attributes are available and populated.
  • Support for data included in the code, such as material, pattern, style, theme, and new and sale labels, depending on the catalog structure.

ALT Text for CMS Pages as Well

A separate structure for CMS images can use the {page_title} and {content_heading}placeholders. Custom text can be set for a page and takes precedence over the general structure. The module adds ALT text to images in CMS content that already have an empty alt.

Configuration and Use

In Stores → Configuration → Customers → Image Alt From Attributes, enable the module and define ALT structures for products and CMS pages. Settings are available at the Default, Website, and Store View levels.

The solution helps maintain consistent image descriptions across an extensive catalog. Text quality depends on the completeness of product data and the selection of placeholders. The module generates ALT text when images are displayed and does not require manually saving a label for each image.

Installation

Composer package: kowal/module-imagealtfromattributes; module: Kowal_ImageAltFromAttributes. Once the package is available in the Composer repository, install it, enable the module, run the Magento upgrade, and clear the cache. Then configure the structure and verify the results on product images and CMS pages.

More Information

Theme compatibility Luma / Blank, KOWAL

Module Installation Instructions

Installation

* In a production environment, please use the option --keep-generated

Type: Composer

  1. The module is available in the Composer repository:
    • Private GitLab repository: https://gitlab.com
  2. Add the Composer repository to your configuration:
    composer config repositories.image.alt.from.attributes vcs https://gitlab.com/magento2ext/magento-2-image-alt-from-attributes
  3. Add the access token for the private GitLab repository:
    composer config --auth gitlab-token.gitlab.com <TWÓJ_TOKEN>
  4. Install the module using Composer:
    composer require kowal/module-imagealtfromattributes
  5. Apply the database updates:
    php bin/magento setup:upgrade
  6. Clear the cache:
    php bin/magento cache:flush
Press to skip carousel

We found other products you might like!

Write Your Own Review
You're reviewing: Magento Image ALT Text from Product Attributes Module
Your Rating:
Price
Quality
Support
loader
Loading...

You submitted your review for moderation.

Questions and Answers

Question
Which versions of Magento 2 is this module compatible with?
Answer
The module is compatible with Magento 2 versions: 2.3.4-2.3.7 and 2.4.0-2.4.7.
Question
Does installing the module require modifying Magento core files or the theme?
Answer
No — the module works as an extension compatible with the Magento 2 architecture and does not require overwriting the system’s core files.
Question
Can I set a text template for alt text—for example, “{product_name} – {color}”—and have the module fill it in automatically?
Answer
Yes—although the exact list of template options is not specified in the description, the purpose of the module is to automatically fill in alt text based on attributes, which suggests this functionality.
Question
Does the module also work with images on CMS pages or in blocks, or only with product images?
Answer
The store description does not explicitly state that the module works with CMS/block images — the feature is focused on product images. If needed, it is worth contacting the provider to confirm.
Question
Can adding alt text help with store SEO and image visibility in search engines?
Answer
Yes — well-optimized alt attributes improve accessibility (for screen readers) and help search engines understand the content of the image.
Question
Does the module affect store performance if I have a very large number of products and images?
Answer
The module adds an automatic attribute completion feature — with a very large image catalog, it is worth performing performance tests, although the module itself should have minimal impact.
Question
Can I exclude certain products or categories from automatic alt text completion?
Answer
The description does not provide detailed exclusion conditions — if this is important for your store, it is recommended to check with the provider whether an exclusion feature is available.
Question
After installation, can I enable or disable the module or perform synchronization manually?
Answer
Yes — the module has configuration in the Magento admin panel, allowing you to enable/disable the function and — typically — manually start the process of adding images.
Question
Do I receive technical support and updates after purchasing the module?
Answer
Yes — the manufacturer states that the module is covered by updates and technical support.
Update cookie preferences