views:

1000

answers:

1

Any one point me on good direction on how to resize a jpg image to exactly particular size (Both File size and pixel size Ex. 148 x 72 px , 300 KB ).

To Acheive this, Quality of images can be adjusted.

It may a .NET library /code but it should be free for commercial use / open source.

I want it in either C# or VB.NET as library.

+1  A: 

You can use the Graphics.DrawImage to resize the image. Then you can adjust the quality by passing a parameter to the Bitmap.Save method (more info). I don't know how you can go from a file size to get the correct compression parameter. You could always try multiple compression parameters until the file size matched what you needed.

David