PHPackages                             basecom/magento2-live-search-image-urls - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. basecom/magento2-live-search-image-urls

ActiveMagento2-module[Image &amp; Media](/categories/media)

basecom/magento2-live-search-image-urls
=======================================

Magento2 module to reference the correctly resized image urls in Live Search

1.0.0(1y ago)801MITPHPPHP ~8.1CI passing

Since Mar 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/basecom/magento2-live-search-image-urls)[ Packagist](https://packagist.org/packages/basecom/magento2-live-search-image-urls)[ RSS](/packages/basecom-magento2-live-search-image-urls/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Basecom\_LiveSearchImageUrls Module
===================================

[](#basecom_livesearchimageurls-module)

[![Packagist](https://camo.githubusercontent.com/c07124439b14cdaba5a82c7354ccf530a81b220038e239196c58a43096f31984/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62617365636f6d2f6d6167656e746f322d6c6976652d7365617263682d696d6167652d75726c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/basecom/magento2-live-search-image-urls)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Supported Magento Versions](https://camo.githubusercontent.com/2113b3a30955562f026a2b7dda3a09fee30d0c49aacbfce67193c5dc7b434617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2113b3a30955562f026a2b7dda3a09fee30d0c49aacbfce67193c5dc7b434617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)

---

When preparing the data for the catalog export to live search, the catalog data export module does not consider the resized, cached files. Instead, the unchanged source file (selected in the admin area) is used. This has considerable performance implications, because the images are now a lot bigger than they need to be. Depending on the implementation, this can affect the entire catalog and product listing page, but will in any case affect the search popover.

This module adds a plugin to the `ImageFormatter::format()` method, which correctly resizes the images that are synced to the live search catalog. This fixes the [issue](https://gitlab.hyva.io/hyva-enterprise/sensei/magento2-ee-magento-live-search/-/issues/9) opened in the Hyva-Enterprise repository (You may need to be given access to view the issue).

Installation
------------

[](#installation)

1. Install the module via composer

    ```
    composer require basecom/magento2-live-search-image-urls
    ```
2. Enable the module

    ```
    bin/magento module:enable Basecom_LiveSearchImageUrls
    bin/magento setup:upgrade
    ```

Configuration
-------------

[](#configuration)

The module can be configured under `Stores > Configuration > Live Search > Storefront Features > Resize Images`. You can select all images types (`thumbnail`, `image`,`smallImage`,`swatchImage`) that you want to be considered for resizing. Selecting `none` (default value) will overrule any selections and no resizing will take effect.

[![resize_images.png](docs/images/resize_images.png)](docs/images/resize_images.png)

### Resize Mode

[](#resize-mode)

There are two available resize modes:

**Manual**:

Allows you to manually configure the width and height dimensions of each image.

[![thumbnail_mode_manual.png](docs/images/thumbnail_mode_manual.png)](docs/images/thumbnail_mode_manual.png)

**Automatic** (default):

Select an image id from the defined images in the `view.xml` file. The images are taken from the theme that is configured for the default store view. This approach is recommended, as you avoid duplication and unnecessary resizing of additional dimensions.

[![thumbnail_mode_automatic.png](docs/images/thumbnail_mode_automatic.png)](docs/images/thumbnail_mode_automatic.png)

Testing
-------

[](#testing)

Please test this functionality locally or on your staging system, before using it in production.

1. Reset the `catalog_data_exporter_products` index, as it might be occupied by another process.

    ```
    bin/magento indexer:reset catalog_data_exporter_products
    ```
2. Initiate a partial reindex.

    ```
    bin/magento indexer:reindex catalog_data_exporter_products
    ```

As the `catalog_data_exporter_products` index depends on others, this will reindex the following indexers as well:

- `catalog_category_product`
- `catalog_product_category`
- `cataloginventory_stock`

After the reindex has finished, it may take some time for Live Search to sync the data. If you want to immediately verify if the generated url is correct, you could add a `dump($result['thumbnail']['url']);` statement to the `afterFormat()` function before returning.

Note

Please make sure that the selected placeholder image for the thumbnail and smaller images is already correctly resized. Resizing this image programmatically may lead to incorrect results. You can change it under `Stores > Configuration > Catalog > Catalog > Product Image Placeholders > Thumbnail`.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

Licensed under the [MIT](LICENSE) license.

Copyright
---------

[](#copyright)

basecom GmbH &amp; Co. KG

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance46

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

410d ago

Major Versions

0.9.0 → 1.0.02025-03-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a67758dd1f3d42f956d3954dd65c125cdb85d0750c2cea0afaa139d4d5f5acb?d=identicon)[basecom](/maintainers/basecom)

---

Top Contributors

[![FinnReinhardtBsc](https://avatars.githubusercontent.com/u/122025487?v=4)](https://github.com/FinnReinhardtBsc "FinnReinhardtBsc (23 commits)")[![pykettk](https://avatars.githubusercontent.com/u/40261741?v=4)](https://github.com/pykettk "pykettk (1 commits)")

---

Tags

adobe-commercehyva-compatiblelive-searchmagentomagento2magento2-enterprisemagento2-extensionmagento2-extension-freemagento2-modulemagento2-plugin

### Embed Badge

![Health badge](/badges/basecom-magento2-live-search-image-urls/health.svg)

```
[![Health](https://phpackages.com/badges/basecom-magento2-live-search-image-urls/health.svg)](https://phpackages.com/packages/basecom-magento2-live-search-image-urls)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[yireo/magento2-next-gen-images

Magento 2 module to add NextGen images support to the Magento frontend

471.1M2](/packages/yireo-magento2-next-gen-images)[smile/module-product-label

Smile - Extension of Magento2 to be able to contribute images associated to product attribute values.

5898.7k](/packages/smile-module-product-label)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[elgentos/magento2-imgix

Imgix extension for Magento 2 to process images

1668.0k](/packages/elgentos-magento2-imgix)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
