You must Sign In to post a response.
  • Category: ASP.NET

    How to resize image without losing quality in c#

    Hi
    Experts

    I need how to resize an image without losing any quality.

    user upload image various dimension for
    ex :- Width 401 Pixels
    Height 483

    but i need
    Width 301 Pixels
    Height 383
    only but image without losing any quality
    so how will do this c#
  • #762799
    Hi

    Refer DNS forum link below for image resizing with out losing its quality.

    http://www.dotnetspider.com/forum/271989-resizing-image-width-height-retain-its.aspx

    Sridhar Thota.
    Editor: DNS Forum.

  • #762802
    Hi
    Sridhar

    How to how to resize an image without losing any quality following size i need how will do this?

    Width 301 Pixels
    Height 383

    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #762803
    Hello Kumar,

    Sridhar provided you the right link. You must have to work on it. Even i have visited that link. It contains the solution that you are looking for.


    Hope you understand.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #762808
    Hi Kumar.

    You should not expect the exact copy to paste in your requirement. You should work on with the ideas given by our members.
    In place of height and width properties you can change according to you.

    Regards

    Sai Krishna Reddy.

  • #762817
    Hi Jayakumar.

    I suggested you the DNS link where the same question has been asked previously. You can get and idea where to modify your code in order to make it work as per your requirement.
    Hope you understood.

    Sridhar Thota.
    Editor: DNS Forum.

  • #762824
    Hai JayaKumar,
    yes, you can search in the forum for the same issue and you can find many links as the same question been asked many times.
    So try with the existing ways and if you are still getting some problem then you can post it.
    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com

  • #762967
    I'm afraid that its almost impossible to do a resize without losing quality. There are some good algorithms to reduce the effect of the resizing. I used a library called leadtools in my application which had simple (nearest neighbor), Resample (sort of averaging) or Bi-cubic (more accurate results) algorithms. If your application requires basic resizing and the level of detail is not much, you can find free libraries that implement one of these algorithms.

    The following links contains more useful information about the subject:
    http://en.wikipedia.org/wiki/Image_scaling


Sign In to post your comments