Log in
Model

MimeTypeExtensionMap

Magento\Catalog\Model\Product\Gallery\MimeTypeExtensionMap

What it does

This class provides a utility to convert MIME types to file extensions for product gallery images.

Developers use it when handling image uploads or processing to determine the correct file extension based on the image's MIME type.

It supports common image formats like JPG, GIF, and PNG used in Magento product galleries.

Public Methods

  • getMimeTypeExtension()