mygento/module-image-common

Magento 2 Common Image Module

Maintainers

Package info

github.com/mygento/module-image-common

Type:magento2-module

pkg:composer/mygento/module-image-common

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.4.x-dev 2026-08-11 16:16 UTC

This package is auto-updated.

Last update: 2026-08-11 16:16:59 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: