Thursday 15 August 2013

filepicker.io - Resize and Crop an image using a single convert() action -


I am currently trying to create a simple image uploader application that allows a user to load a picture from their desktop Allows to select a crop field (using jecrop) in the specific aspect ratio, and then the defined dimension has filepicker.io crop and appropriately resize below.

Users must be uploading a picture of unknown dimensions, which is in the area 10:13 ratio (width x height) and then the file picture needs to be cropped before resizing their image to 100x130px.

Currently, I have to do 2 different converted action to change the size of the crop and the image, which takes extra time and feels less efficient. Is there any way to add the crop and resize the same action?

To get an idea of ​​what I'm doing after this, I would like to return this order to the image of 100x130 in its ideal size:

/ Crop = 546,119,412,36 & amp; W = 100 & amp; H = 130

You can see a note on their documentation about the topic:

Change the crop and size: We strongly recommend that a size (specify width or height) with crop efficiency be advised, because it has an uncertain effect.

Source:

No comments:

Post a Comment