imageresizer - Image Resize - Fixed width and height with padding even image is smaller -


when upload 100x100 image, cant make 120x120 whitespace filled 20px.

if upload 200x150, 120x120 image ok, filled whitespace.

this code.

var setting = new resizesettings                        {                            width = 120,                            height = 120,                            format = "jpg"                        };    imagebuilder.current.build(image, "desctination", setting, false, false); 

don`t know why, think used method in past.

any suggestion?

this explained in paragraph 2 of imageresizer api introduction page; use &scale=canvas or scale = scalemode.upscalecanvas.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -