Open BorisKourt opened 9 years ago
There is no such option at this time, but it should be doable.
If you look at transform-image-1
, it loads the image before doing any transformations on it. This image has .getWidth
and .getHeight
methods. The options are also passed in.
Maybe you would like to give it a go?
Back at working with stasis, I have the following functioning:
This works well for images that are above 860px in width. But results in, for this case, undesired upscaled versions of smaller images. Do you know of a good way to prevent transformation if an image is smaller than the specified transform width?
Thank you.