Support sharp's withoutEnlargement
option
#257
Replies: 1 comment
-
I like this idea, though I guess since imagetools has no support for relative resizing this isn't such a big deal?
This is certainly possible yes.
Well what can I say, I'm incredibly humbled but also very much stripped for time too (you can probably tell) |
Beta Was this translation helpful? Give feedback.
-
Creating presets with a fixed set of sizes at the moment will generate unnecessary sizes, is there any way to implement the
withoutEnlargement
option when resizing to avoid upscaling images, and possibly even remove duplicate images if they are constrained to the original image's dimensions?Or is it possible to get access to the source image dimensions from within a custom
resolveConfigs
function in order to selectively add widths that would not cause upscaling or duplicate images?This was one of my primary goals when I developed https://github.com/MarcusCemes/image-processing-pipeline, at the moment I'm lacking in time, I was hoping to pick something else off the shelf!
Beta Was this translation helpful? Give feedback.
All reactions