Image resizing in  (Thumbnail to full view )

Posted on 2006-04-07
Last Modified: 2012-06-21
Hi Everybody

I am using application.

I am displaying a Image in Thumbnail view.
I have to display this Image in the full view after clicking on this. On click, I am displaying this Image on another web-form, But Image gets distortion. This Images doesn't look normal with same look.

What Should I do , to display this image in full view.

Thanks & Best Regards

Question by:HanuSoftware
    LVL 1

    Accepted Solution

    Whenever you take a small image and stretch it to be large you always get a distorted view of the image because the computer has to make up for pixels that aren't there.

    The way that I think most people accomplish what I think you're proposing is to keep 2 copies of an image, one thumbnail view and the other of the original size. Once the user clicks on the thumbnail they are taken to the larger original image. In short, it's best not to try and resize images from small to large, it almost never works out.
    LVL 12

    Assisted Solution

    I think i know what you might be talking about.  Are you trying to generate a larger image with GetThumbnailImage???

    So there will be 3 file sizes

    1) Full Blown 1024x768 (file on disk)
    2) Webpage size 640x480 (created from file)
    3) Thumbnail 120x120 (created from file)

    So 1 is to big to use, but 2 is to distorted, and 3 works.

    If it's something like this, then check out a question i asked a while ago, it might solve your problem:
    "Resize Image in C#"
    LVL 1

    Expert Comment

    I'd like to think that my answer is the correct one, however I'm extremely biased in that opinion.

    Therefore hopefully the user who asked the question will return and give some comment as to the outcome of how this topic should be handled.
    LVL 12

    Expert Comment

    I think we were both right, the link i provided did show code on how to solve this problem dynamically.  Compmouse's post also solved the question in a different static way.

    I vote for a 50/50 split.
    LVL 1

    Expert Comment

    I'd go for that. :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video discusses moving either the default database or any database to a new volume.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now