Resize Image C Web Api. Response content headers contenttype new mediatypeheadervalue image jpeg. Int drawheight height.
Once the image is in memory the next step is to crop and resize it to create our output image. Memorystream memorystream new memorystream. Kraken io will first resize the given image and then optimize it using our tried and tested optimization pipeline.
Choose asp net mvc 4 web application from the list then provide the application name as you wish and click the ok button then select web api.
Newwidth image width maxheight image height. Once the image is in memory the next step is to crop and resize it to create our output image. Click the resize image now button to resize the image. Drawheight drawwidth var destrect new rectangle width drawwidth 2 height drawheight 2 drawwidth drawheight.