1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sitefinity 3.7 Image Gallery

Sitefinity 3.7 Image Gallery

2 posts, 0 answered
  1. karnan sekar
    karnan sekar avatar
    80 posts
    Registered:
    07 Jul 2009
    23 Oct 2009
    Link to this post
    Hi,

    In an image gallery we need to show two links called  download high resolution and download low resolution.

    We are building a custom module as below

    foreach (IContent cntPhotos in listAllPhotos)
     {
        string strImage=  cntPhotos.UrlWithExtension.ToString();

       }
    and binding into two links as below.

    <a href="/Libraries/Image_Gallery/sunset11.sflb.ashx?download=true" >Download High res</a>
    <a href="/Libraries/Image_Gallery/sunset11.sflb.ashx?download=true">Download low res</a>

    Please tell us how to get the low resolution image from the actual image. Since we are not storing two different images.


    Thanks,
    Karnan





  2. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    01 Jun 2017
    23 Oct 2009
    Link to this post
    Hello karnan sekar,

    Append query string values for width and height to url for the low resolution:

    <a href="/Libraries/Image_Gallery/sunset11.sflb.ashx?download=true&height=300&width=300">Download low res</a>

    Hope this helps.

    Sincerely yours,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered