Skip to content

SEO - Image Friendly URLs - Installation

This document contains notes for developers.

Plugin

Area Type Plugin(s) Role
global Magento\Catalog\Model\Product\Gallery\CreateHandler afterExecute Handing SEO image name and ALT Tag for a product when it is saved
global Magento\Catalog\Block\Product\ImageFactory aroundCreate Plugin to create SEO friendly image symlinl / files (depends on confguration
global Magento\Catalog\Model\ResourceModel\Product\Gallery aroundCreateBatchBaseSelect Change the way gallery values are fetched by extending SQL query
frontend Magento\Catalog\Block\Product\View\Gallery afterGetGalleryImages Change the way gallery is generated, returns SEO friendly URLs for images
afterGetGalleryImagesJson Change caption / img alt tag field to SEO one

Preferences

Area For Role
global Magento\MediaStorage\App\Media Change the way image URLs are processed by the platform
global Magento\MediaStorage\Service\ImageResize Preference needed to generate and resize SEO friendly image based on MISC params in the URL
global Magento\Catalog\Model\View\Asset\Image Preference responsible for creating image URLs

Database Changes

Table Field Role
catalog_product_entity_media_gallery_value seo_name Adding new field to store image custom URL defined in Admin Interface