Images resizeAndSave should fallback to config.upload.formatOptions #2215
khakimvinh
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
ref:
src/uploads/imageResizer.ts
>resizeAndSave
Currently
resizeAndSave
only check forformatOptions
in eachdesiredSize
, if not specified, the function will simply skip and go back to use JPG even withconfig.upload.formatOptions
declared.This is not really a bug but I would suggest falling back to use
config.upload.formatOptions
if exists before using default, would be more convenience when only 1 format option needed.Beta Was this translation helpful? Give feedback.
All reactions