Feature request: optionally cap the max pixel count instead of max dimensions
subtleGradient opened this issue · comments
Use case: we have a bunch of super tall and skinny images.
Since they're so tall, they're hitting the originalSteps
maximum height limit.
But since they're so skinny, they shouldn't be unnecessarily scaled down.
So, I propose calculating a maximum pixel count instead of maximum dimensions.
I'm planning to implement this myself (if I can figure out how ;)
node-image-steam/lib/processor/steps/resize.js
Lines 27 to 35 in fb47cc7