Very High Quality Image Resizing in .NET (www.keyvan.ms)

submitted by rcashrcash(4149) 8 months, 26 days ago

Here is how to implement an image resizing technique in an ASP.NET MVC controller. The resizing techniques are implemented in different action methods in an ASP.NET MVC controller. These action methods receive the width and height of the destination image as their parameters. I can set up my routing to handle this controller, called ImageResizeController. Click read article to see the code.

2 comments |category: |Views: 67

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by vijaystvijayst(1311) 8 months, 26 days ago 0

It is a well written article on how to save images. It will be interesting to know the various image properties used like Interpolation Mode, Smoothing Mode, Pixel Offset Mode, Compositing Quality. Also, it will be nice to know how setting the Encoder Quality helps in improving the image quality.

Reply

posted by dpetersondpeterson(4397) 8 months, 25 days ago 0

Well one thing I'm noticing is that the quality comes from the bicubic resampling method, and that the result is not being saved off somewhere for later use. I can't imagine that the disk space is more expensive than the processor time required to resample the images using bicubic resampling on every request ;-)

Reply

information Login or create an account to comment on this story