Log in
Model

CreateAssetFromFile

Magento\MediaGallerySynchronization\Model\CreateAssetFromFile

What it does

This class creates a MediaGallery asset object from a physical file in the media directory.

Developers use this during media synchronization to convert file system images into database-tracked assets with metadata like dimensions, hash, size, and content type.

It handles both local and remote storage systems by adapting metadata collection methods.

Public Methods

  • execute()