Conversation
|
Hi @CelineDesign, could you add a test? |
|
Hi, just add the fit option in the config object and a test for it. |
|
I mean a test that guarantees the correct output. |
| format: null, | ||
| trim: false | ||
| trim: false, | ||
| fit: 'cover' |
There was a problem hiding this comment.
The default option is centre https://sharp.pixelplumbing.com/api-resize#resize that change would be breaking.
There was a problem hiding this comment.
I think you're mistaking. According to the documentation the "fit" parameter default value is "cover". See here :
https://sharp.pixelplumbing.com/api-resize#resize
Centre is the "position" param default value.
By "correct output" do you mean the file at the right dimension ? |
Add the new Sharp fit parameter as a configuration option. Replace the deprecated max parameter.