For custom modules when the module requires 1 to many images I usually create a image gallery using
LibraryManager libraryManager =
ILibrary library = libraryManager.GetLibrary(cat.LibraryID);
library.Name = cat.Name +
//Looks like the library got deleted recreate it
ILibrary firstLibrary = libraryManager.CreateLibrary();
firstLibrary.Name = cat.Name +
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.