More in this section

Forums / General Discussions / Images and Documents

Images and Documents

2 posts, 0 answered
  1. Luke Durrant
    Luke Durrant avatar
    10 posts
    11 Sep 2009
    25 May 2010
    Link to this post
    For custom modules when the module requires 1 to many images I usually create a image gallery using Library Manager.

    LibraryManager libraryManager = new LibraryManager();
                ILibrary library = libraryManager.GetLibrary(cat.LibraryID);
                if (library != null)
                    library.Name = cat.Name + " Category";
                    //Looks like the library got deleted recreate it
                    ILibrary firstLibrary = libraryManager.CreateLibrary();
                    firstLibrary.Name = cat.Name + " Category";
                    firstLibrary.TypeName = "Image";
                    cat.LibraryID = firstLibrary.ID;

    I then save the LibraryID as an attribute in the custom module. Which is all fine and dandy!
    However when retrieving the images. At the moment we append ?width=246&height=112&decreaseOnly=true which resizes the image it would be nice to be able to specify image sizes  (as in dimensions not file size) programmatically and through the admin for a gallery which will then automatically resize images.

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    26 May 2010
    Link to this post
    Hi Luke Durrant,

    Thank you for the feature request.

    We will log your feature request. If we plan to implement it I will follow up in this thread.

    Radoslav Georgiev
    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