-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi! Could you please help me to add this sharp option (https://sharp.pixelplumbing.com/api-resize#parameters):
options.withoutEnlargement Boolean do not enlarge if the width or height are already less than the specified dimensions, equivalent to GraphicsMagick's > geometry option. (optional, default false)
Is it possible?
I have tried different variants that are not working:
.pipe(sharpResponsive({
includeOriginalFile: true,
withoutEnlargement: true,
formats: [
{ width: 768, sharp: { withoutEnlargement: true }, withoutEnlargement: true, quality: 100, rename: { suffix: "_mq2" } },
]
}))
The original image (3kb) is enlarged to 1202kb
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels