mygento / module-image-common
Magento 2 Common Image Module
Package info
github.com/mygento/module-image-common
Type:magento2-module
pkg:composer/mygento/module-image-common
Requires
- intervention/image: ^4.2
- magento/module-store: 101.1.*
Requires (Dev)
- mygento/coding-standard: ~2.14.8
This package is auto-updated.
Last update: 2026-08-11 19:53:19 UTC
README
A reusable Magento 2 library for image resizing and custom entity image uploading.
This module provides common utilities that can be shared across Magento 2 modules, helping developers avoid duplicating image-processing and image-upload logic for different custom entities.
Features
-
Image Resizer
- Resize images to custom dimensions.
- Convert images to modern formats
- Optimize images
-
Custom Entity Uploader
- Upload images with 2 folder structure
- Reduce duplicated uploader implementations across modules.
Installation
Install the package using Composer:
composer require mygento/module-image-common
Image Resizer
The image resizer provides a common service for processing and resizing images.
Example usage:
TODO:
The actual interface and method signature may vary depending on the implementation.
Custom Entity Uploader
The custom entity uploader can be used when an entity needs to store an uploaded image.
For example, a custom entity such as:
- Brand
- Manufacturer
- Category extension
- Product extension
- Banner
- Store locator
- Custom CMS entity
can use the shared uploader rather than implementing its own upload logic.
Example:
TODO: