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

Forums / Developing with Sitefinity / Change Thumbnail Size

Change Thumbnail Size

5 posts, 0 answered
  1. Gökhan Yalçın
    Gökhan Yalçın avatar
    21 posts
    Registered:
    26 Nov 2009
    07 Feb 2010
    Link to this post
    Hi ,

    I have a CmsContentBase object named cmsItem . I guess when I say "cmsItem.ThumbnailUrl" it brings  the url of binarycontent in the  sf_CmsContentThumbnail table .  If it does so , How can i set  the thumbnail  width and height of  the image so that sitefinity inserts  the image  to this table with this width and height during the  upload  ?

    Thanks in advance
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    27 Apr 2017
    07 Feb 2010
    Link to this post
    Hello Gökhan Yalçın,

    Please take a look at this forum post - Resizing images on upload

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. Gökhan Yalçın
    Gökhan Yalçın avatar
    21 posts
    Registered:
    26 Nov 2009
    07 Feb 2010
    Link to this post
    Hi Ivan ,

    Thanks for the answer .But  the post you want me to look explains how to resize the image I upload . What i need is
    setting the size  of  thumbnail of image  not the image itself .
  4. Mustafa Kipergil
    Mustafa Kipergil avatar
    3 posts
    Registered:
    20 Aug 2009
    09 Feb 2010
    Link to this post
    I asked the same question as a support ticket and this the answer. I hope this helps.


    The default thumbnail height and width properties are configurable from your website's web.config file. You ca configure them as in bellow sample:
    <libraries defaultGenericProvider="Libraries">
      <genericContentProviders>
        <add providerName="Libraries" defaultThumbnailHeight="250"defaultThumbnailWidth="250" publicationDateField="Publication_Date"/>
      </genericContentProviders>
    If you also wish to create better quality thumbnails you can set this (also in web.config):
    <cmsEngine defaultProvider="Generic_Content" >
    <thumbnailResizeSettings compositingQuality="HighQuality"interpolationMode="HighQualityBicubic" smoothingMode="HighQuality">
    </thumbnailResizeSettings>
          <providers>
              <clear/>

  5. Ege AKPINAR
    Ege AKPINAR avatar
    6 posts
    Registered:
    01 Dec 2009
    19 Apr 2010
    Link to this post
    Great, that's what I was looking for. Thanks!
Register for webinar
5 posts, 0 answered