« Back to demos index

Avoid zooming small images when resizing

Our image resize robot offers a "zoom" parameter that, when set to false, ensure that images smaller than your specified width and height will not get zoomed. » See full documentation

"steps": {
  "thumb": {
    "robot": "/image/resize",
    "width": 300,
    "height": 300,
    "resize_strategy": "pad",
    "zoom": false,
    "background": "#000000"
  }
}
$(function() {
  $('form').transloadit({
    wait: true,
    autoSubmit: true
  });
});

The form

For demos we allow a maximum of 30MB.

This form is html5-multiupload enabled. If your browser supports it, you can select multiple files and execute the template with them.