Download the PHP package netlogix/nlx-sw-imgproxy without Composer
On this page you can find all versions of the php package netlogix/nlx-sw-imgproxy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download netlogix/nlx-sw-imgproxy
More information about netlogix/nlx-sw-imgproxy
Files in netlogix/nlx-sw-imgproxy
Package nlx-sw-imgproxy
Short Description Plugin to allow shopware to authenticate and support image proxy
License MIT
Informations about the package nlx-sw-imgproxy
NlxSwImgproxy
This plugin adds remoteThumbnail support for imgproxy.
Installation
Configuration
You can configure the plugin over the Shopware plugin configuration or add the following configuration to your config/packages/shopware.yaml
file:
option | default | description |
---|---|---|
enable | false | |
baseUrl | null | The imgproxy baseUrl |
resizeType | null | The resize type for imgproxy |
imageSource | null | The image source for imgproxy |
key | null | The key for signing a URL |
salt | null | The salt for signing a URL |
Only if enable
is set to true
and baseUrl
is defined, the plugin will use imgproxy to generate remote thumbnails.
Only if key and salt are set, the plugin will sign the URLs.
Granular imgproxy configuration
There are two ways to add additional processing options for imgproxy:
imgproxy presets - recommended
Define a default preset in your imgproxy. for example:
Decorate the UrlGenerator::getImagePath
extension
You can decorate the UrlGenerator
to add additional processing options for imgproxy.
This method getImagePath
allows you to modify the URL path that is generated by the plugin.
Usage
You need an instance of imgproxy running to use this plugin.
You can run it locally or in a docker container darthsim/imgproxy
.
You have to enable remote_thumbnails
I recommend use the shopware.system_config
to configure the plugin.
for example in your config/packages/shopware.yaml
file: