More in this section

Forums / General Discussions / Image Thumbnail

Image Thumbnail

2 posts, 0 answered
  1. Vitaly
    Vitaly avatar
    11 posts
    20 Jun 2010
    03 Feb 2011
    Link to this post

    I'm looking for a help on how to show image with predefined max width. Basically, I have an image and I can show it using following code:

                    Image result = App.WorkWith().Image(id).Get();
                    return result.MediaUrl;

    I followed directions this URL:

                    Image result = App.WorkWith().Image(id).Get();
                    return result.MediaUrl + "?size=400";

    it doesn't work (width is not 400px). Using thumbnails URL also doesn't help:

                    return result.GetThumbnailUrl() + "?size=400";

    What am I doing wrong?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    03 Feb 2011
    Link to this post
    Hello Vitaly,

    You cannot use the thumbnail to resize the image. Could you check the url that is generated after you execute the code? It should be something like this one


    If you query the image directly from the browser with size=400 is there any difference.

    Also clear the browser cache before trying these suggestions.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered