Feature Request: If picture is smaller than requested output do not scale up
Opened this issue · 4 comments
If the source image has 500px width and the requested size is 1500px the image should not be upscaled?
Background: It should not waste bandwidth. So maybe upscale the image but reduce in size by setting quality accordingly.
I think upscaling is by design a bad choice.
If you request a size that does not exist you should get the smaller one.
If we want to be more exact that case should give a 404.
What do you think?
Well from Frontend perspective you don't want to handle edge cases like this with extra logic.
If a 404 is returned you have to implement some logic to get a smaller picture or you won't show it to the user. Both degrade the user experience.
I am thinking about closing the issue, as there is no way to scale up (not changing the size) and keeping the quality.