This is set via the imageTransformStrategy option in the AssetServerOptions. Multiple
strategies can be defined and will be executed in the order in which they are defined.
If a strategy throws an error, the image transformation will be aborted and the error will be logged, with an HTTP 400 response sent to the client.
InjectableStrategy(args: GetImageTransformParametersArgs) => Promise<ImageTransformParameters> | ImageTransformParametersGiven the input parameters, return the parameters which should be used to transform the image.
Parameters which are used to transform the image.
number | undefinednumber | undefinedImageTransformMode | undefinednumber | undefinedImageTransformFormat | undefinednumber | undefinednumber | undefinedstring | undefinedThe arguments passed to the getImageTransformParameters method of an ImageTransformStrategy.
RequestImageTransformPreset[]ImageTransformParametersArchitecture reviews, custom plugin work, migrations, ongoing support. Get a hand from the team that builds Vendure.
Talk to the team