Image SEO, Alt & Title Generator for Magento 2
Generate rendered product-image labels from store-scoped name, SKU, store and category templates. Review listing and gallery behaviour separately, including custom captions and upload filename handling.
- Free
- Themes listed: Hyvä + Luma
composer require mage2kishan/module-image-seo
- Package requirementsRead the source documentation
- Developer profileView Upwork profile
- Themes listedHyvä + Luma
- PHP versions listed8.1, 8.2, 8.3, 8.4
- Installation questionsDiscuss your store setup
What it does for your store
The main features, as listed in the module documentation.
-
Product-image text templates
Use supported tokens and filters with available product/store context.
-
Store-scoped settings
Choose templates and enablement for the intended store view.
-
Separate gallery control
Apply replaceable gallery captions/titles without assuming identical listing behaviour.
-
Upload filename normalization
Normalize eligible newly moved upload filenames; existing media is not bulk-renamed.
Installation
Example commands from the Magento root. Follow the package instructions and your staging and deployment process.
- 1Check the releaseMatch Magento, PHP, theme and dependency requirements.
- 2Install on stagingReview Composer changes and follow the package instructions.
- 3Configure and verifyUse the documented settings and test the affected features.
$ composer require mage2kishan/module-image-seo $ bin/magento setup:upgrade $ bin/magento setup:di:compile $ bin/magento setup:static-content:deploy -f $ bin/magento cache:clean
Listed requirements
These are the details supplied in this listing. Confirm the selected release supports your Magento edition, PHP and storefront.
| Magento versions listed | 2.4.6, 2.4.7, 2.4.8 |
|---|---|
| PHP versions listed | 8.1, 8.2, 8.3, 8.4 |
| Themes listed | Hyvä, Luma |
| Composer package | mage2kishan/module-image-seo |
Documentation
Product details and setup guidance. Check the package repository for release-specific instructions.
Overview
Panth Image SEO supplies template-based text to supported Magento product-image renderers. Use product name, SKU, store and available category context to create useful labels, then check how your listings and gallery consume them. The module does not inspect the photograph to understand what it shows.
What you get
- Configurable alt/title templates with supported tokens and filters.
- Image-factory, image-helper and standard-gallery integrations.
- A separate gallery switch and replaceable-caption rules.
- Filename normalization for eligible newly moved catalogue uploads.
Magento 2 Image SEO
Release 1.0.14 helps manage product-image text, not image compression or conversion. For delivery-related controls, compare Image Optimizer. Write labels that describe the actual image and context; Google's image guidance recommends useful descriptive text rather than repeated keywords.
Features
Check gallery and listing behaviour separately. The gallery plugin preserves captions/titles outside its replaceable cases, while the image-factory and helper plugins can replace rendered labels with template output. This is not a universal promise to preserve every custom label on every surface.
Usage
Inspect a category tile, search result and product gallery, with both empty and carefully authored labels. Verify final HTML and gallery data on your theme. Also test a new upload if filename normalization is relevant; existing media is not bulk-renamed.
| Surface | Release behaviour |
|---|---|
| Image factory / helper | Can replace the rendered label with template output |
| Standard gallery labels / JSON | Replace only eligible empty, name, filename or placeholder values |
| Gallery position | Add Image N of M to generated captions when multiple images exist |
| Catalogue upload move | Normalize eligible new filename without bulk-renaming existing media |
Changelog
See CHANGELOG.md.
Compatibility
Check the release requirements below against your Magento and PHP versions. During staging deployment, test your theme and custom extensions as well as the module itself. Use Adobe's version-specific requirements to check the underlying platform services.
| Release requirement | Declared value / check |
|---|---|
| Package | mage2kishan/module-image-seo 1.0.14 |
| PHP | ~8.1.0||~8.2.0||~8.3.0||~8.4.0 |
| Panth Core | ^1.0 |
| Magento components | Use the exact Composer constraints in this release |
| Theme / edition | Test the chosen theme and project integrations on staging |
Requirements
Release 1.0.14 declares PHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0, mage2kishan/module-core:^1.0 and the Magento component constraints in its Composer manifest. Resolve those dependencies for the exact release you intend to deploy, then follow the installation and storefront checks below.
Installation
Install the selected release on a staging copy first. The commands identify its Composer package and Magento modules; setup, compilation and static assets must follow your deployment mode and rollback process. Check the resulting storefront or endpoint before production use.
composer require mage2kishan/module-image-seo
bin/magento module:enable Panth_Core Panth_ImageSeo
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
bin/magento module:status Panth_ImageSeo
Configuration
Open Stores > Configuration > Panth Infotech > Image SEO and choose the intended scope.
Review the main switch, alt/title templates and gallery switch at the intended scope. Start with a short name-based template, then inspect products with different images and existing custom captions. A template cannot tell whether an image is decorative or whether a product name accurately describes the photograph.
| Control | Default | Use |
|---|---|---|
| Main template setting | Yes | Enable the image-text integrations |
| Alt template | {{name}} - {{store}} | Rendered label text |
| Title template | {{name}} | Resolved gallery title text; renderer must consume it |
| Gallery setting | Yes | Gate gallery label and JSON hooks |
Tokens
Tokens use available context. In particular, category text can be empty where no category is attached to the product context. Provide a suitable fallback or omit it when that would make the text misleading.
| Token | Available value |
|---|---|
| {{name}} | Product name |
| {{sku}} | Product SKU |
| {{store}} | Current store-view name |
| {{category}} | Product category context when available |
Filters
Use filters to make text readable, not to repeat search phrases. The resolver caps its generated strings at 250 characters. Template validation and truncation are guardrails; they do not establish that the result is a useful image description.
| Filter | Meaning |
|---|---|
| truncate:N | Shorten a value and append an ellipsis |
| title / upper / lower | Change letter case |
| strip | Remove HTML and collapse whitespace |
| default:'text' | Use a fallback for an empty value |
Template examples
These examples show supported syntax. Choose wording that matches your images and language. A category or SKU can be useful in one store and distracting in another.
Alt: {{name}} - {{store}}
Title: {{name}}
Alt: {{name|truncate:80}} | {{store}}
Title: {{name}}
Alt: {{name}} in {{category|default:'our catalogue'}}
Title: {{name}}
Alt: [{{sku|upper}}] {{name}} | {{store}}
Title: {{name|truncate:60}}
Uninstallation
Check dependent packages and take the relevant configuration/data backup before removing code. Follow a reviewed removal plan. Disabling a module does not prove that its stored settings, records or prior file changes have been removed.
bin/magento module:disable Panth_ImageSeo
composer remove mage2kishan/module-image-seo
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
License
This 1.0.14 release declares MIT and includes its licence notice. Keep the required notice with redistribution. Check the terms that apply to the release you use and any separately agreed services.
Developer Notes
The default vision adapter is a no-op, and the ordinary resolver does not pass an image path to it. AI-generated visual descriptions require a separate implementation and integration. Render plugins change labels in memory; the upload plugin can rename a newly moved file when its checks allow. No compression, format conversion or bulk label-writing job is supplied.
| Module Category | SEO & Indexing |
|---|---|
| Best For | All Sizes |
FAQ
Will this overwrite my custom image labels?
The gallery plugin keeps captions and titles that it does not classify as empty, product-name, filename or placeholder values. Other paths differ: the image-factory and image-helper plugins can replace the rendered label with template output. Test a product with carefully written custom labels in both gallery and listing views before enabling it broadly. Stored labels are not rewritten by those render plugins.
Does it work with Hyva?
The release hooks Magento image-factory, image-helper and gallery APIs used by many storefronts. Verify your Hyva image and gallery implementation, including custom templates and third-party galleries. A custom gallery can follow a different rendering path, so check the installed gallery rather than relying on a theme name.
Does it work with Luma?
It targets Magento's standard catalogue image and gallery paths. Inspect category tiles, search results and product-gallery HTML/JSON on your Luma installation, with empty and custom labels. Custom rendering that bypasses those APIs may need an adapter.
Is Panth_Core required?
Release 1.0.14 declares mage2kishan/module-core:^1.0. Resolve the dependency before enabling Panth_Core and Panth_ImageSeo, then follow your normal deployment and image-output checks.
Can I use AI-generated alt text?
The package defines a vision-adapter interface, but its default adapter returns no description. The ordinary storefront resolver does not supply an image path to that optional adapter call. An AI service needs a separate implementation and integration; this release does not supply an image-description API or guarantee visual accuracy.
Does it support multi-store / multi-language?
Templates and enablement are read at store scope. They use the product and available store/category context; they do not translate or understand the photograph. Review the generated text in each language and use a fallback where a category or other token is unavailable.
What about the `title` attribute on `<img>` tags?
The resolver produces alt and title text, and the gallery plugin can populate JSON captions and titles. Whether a particular image has an HTML title attribute depends on its renderer. Inspect the actual output rather than assuming every theme consumes both values.
Can I disable it temporarily?
Yes. Turn off the main image-SEO setting at the intended scope and refresh the relevant project/page caches. Check the storefront response after the change. Disabling render-time generation does not reverse any filename normalization that occurred during earlier uploads.
Does it touch the database?
The image render plugins change labels and gallery data in memory; they do not bulk-update stored product image labels. Saving configuration still uses Magento's configuration storage, and the upload plugin can rename a newly moved media file. Treat those as separate effects when planning a rollback.
What if I want to disable only the gallery injection but keep tile alt working?
Leave the main template-based image setting enabled and turn off Apply to Gallery Images JSON at the relevant scope. That gallery switch gates both the gallery image-label and JSON hooks in this release. The separate image-factory/helper paths can continue to provide rendered labels.
Is it compatible with Varnish / Redis FPC?
Rendered labels can be included in cached page output. Verify your actual cache stack after a template or scope change and clean only the appropriate project caches. The module does not configure Redis or Varnish; check cache invalidation and the public response on the stack you use.
Questions before you install?
Send me your composer.json and I will check for conflicts first. Free. Installation is +$45, custom work is quoted first.