c# - WebImage Crop After Resize dont work -
i upload file , after upload base on info got , resize image , crop , resize again
but first resize work , crop , second resize noting on image, after first resize must ?
webimage img = new webimage(file.inputstream); img.resize(image_sw, image_sh); img.crop(image_y, image_x, image_y + image_h, image_x + image_w); img.resize(300, 300); var path = request.mappath("~/content/images/category/" + model.id + "." + type); img.save(path);
the resize method has return argument new resized image. saving img save old image in old sizes.
try this:
img = img.resize(300, 300);
Comments
Post a Comment