Вопрос

I read the documentation about scaling with Fine Uploader: http://docs.fineuploader.com/features/scaling.html

Is possible to scale a picture just considering the height of a picture?

For example we need to resize a picture in order that will be not taller than 1080 px. If a picture dimensions are 1200x800, I want the it will be NOT scaled because the height is already less than 1080 px. But with a picture that is 800x1200 I want that will be scaled based on the height of 1080 px.

Is it possible?

I'm not seeing anything in the API in order to do it.

Это было полезно?

Решение

You can generate a scaled version of an image on-demand with varying restrictions programmatically via Fine Uploader's scaleImage API method. This will generate a Blob, which you can pass to the addBlobs API method.

If this proves to be cumbersome for your use case, and would like to see the ability to dynamically change scaling options per-file for internally scaled imags, please open up an issue in Fine Uploader's issue tracker.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top