Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This module adds the possibility to remove generated product thumbnails through REST API thumbnails generated by the lazy resize module.

Installation

Info

This module is optional

...

There are no admin settings.

Backend

Code Block
const FILE_NAME_FORMAT = '/%s/%s/%s';
const IMAGE_PATH_FORMAT = '%s/pub/media/catalog/product/%s';
Code Block<route This module added two API endpoints for removing product thumbnails.

By product SKU: <route url="/V1/thumbnails/remove/sku/:sku" method="DELETE"> <service class="MageSuite\ThumbnailRemove\Api\ThumbnailRemoveInterface" method="removeBySku"/> <resources> <resource ref="self"/> </resources> </route> <route
By image name: <route url="/V1/thumbnails/remove/name/:name" method="DELETE"> <service class="MageSuite\ThumbnailRemove\Api\ThumbnailRemoveInterface" method="removeByName"/> <resources> <resource ref="self"/> </resources> </route>