Images and Documents

Posted by Community Admin on 03-Aug-2018 02:27

Images and Documents

All Replies

Posted by Community Admin on 25-May-2010 00:00

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";
                libraryManager.SaveLibrary(library);
            
            else
            
                //Looks like the library got deleted recreate it
                ILibrary firstLibrary = libraryManager.CreateLibrary();
                firstLibrary.Name = cat.Name + " Category";
                firstLibrary.TypeName = "Image";
                libraryManager.SaveLibrary(firstLibrary);
                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.

Cheers
Luke

Posted by Community Admin on 26-May-2010 00:00

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.

Regards,
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.

This thread is closed