More in this section
Forums / Developing with Sitefinity / Sitefinity 3.7 Image Gallery

Sitefinity 3.7 Image Gallery

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. karnan sekar
    karnan sekar avatar
    80 posts
    07 Jul 2009
    23 Oct 2009
    Link to this post

    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.


  2. Nikolai
    Nikolai avatar
    216 posts
    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,
    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