https://github.com/friendsofshopware/froshthumbnailprocessor
This plugin allows you to use variable thumbnails - on the fly. Including lazy loading.
https://github.com/friendsofshopware/froshthumbnailprocessor
Last synced: about 1 month ago
JSON representation
This plugin allows you to use variable thumbnails - on the fly. Including lazy loading.
- Host: GitHub
- URL: https://github.com/friendsofshopware/froshthumbnailprocessor
- Owner: FriendsOfShopware
- Created: 2019-12-08T13:25:03.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T14:42:58.000Z (about 2 years ago)
- Last Synced: 2025-01-14T11:22:52.572Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 88.9 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Thumbnail Processor for Shopware 5
[](LICENSE.md)
This plugin allows you to use variable thumbnails, if your filesystem (or storage-adapter) supports.
It will add parameters to original image paths.
So you are able to save storage and add new thumbnails on the fly.## Install
Download the plugin from the release page and enable it in shopware.
## Usage
You can activate using of Thumbnail Processor in plugin. Clear all caches after changing settings.
This will access all thumbnails variable from original image. The thumbnail-files won't be needed anymore.````
f.e.:
https://cdn.example.de/media/image/01/82/69/sasse_200x200.png
becomes:
https://cdn.example.de/media/image/52/5b/a1/sasse.png?width=200&height=200
````
You can edit the thumbnail-template within the plugin-config. Defaults `{mediaUrl}/{mediaPath}?width={width}&height={height}`.
Available variables with examples:
* {mediaUrl}: https://cdn.test.de/
* {mediaPath}: media/image/5b/6d/16/tea.png
* {width}: 800
* {height}: 800### Removing unneeded thumbnails
To remove all thumbnails use following command. This will collect and remove all thumbnails related to the media manager:
`bin/console frosh:thumbnails:remove`## Tested Supports
### imgproxy [Link](https://imgproxy.net/)
Tested with insecure environment for internal test-shops. Template example: `http://localhost:8080/insecure/fit/{width}/{height}/sm/0/plain/{mediaUrl}/{mediaPath}`.
### BunnyCDN [Link](https://bunnycdn.com/)
You would have to active `Bunny Optimizer` and `Manipulation Engine` in your Zone in BunnyCDN.

### Images.weserv.nl [Link](https://images.weserv.nl/)
An image cache & resize service. Manipulate images on-the-fly with a worldwide cache. Template example: `https://images.weserv.nl/?url={mediaUrl}/{mediaPath}&w={width}&h={height}`.
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.