namespace: Serenity.Web assembly: Serenity.Net.Services
Creates additional thumbs if specified in the upload image options, and saves them to the target upload storage
public static void CreateAdditionalThumbs(object image, IImageProcessor imageProcessor,
IUploadImageOptions options, IUploadStorage uploadStorage, string temporaryFile,
OverwriteOption overwrite)
parameter | description |
---|---|
image | Image |
imageProcessor | Image processor |
options | Upload image options |
uploadStorage | Target upload storage |
temporaryFile | Input temporary file |
overwrite | Overwrite option |
exception | condition |
---|---|
ArgumentNullException | image, options or temporaryFile is null |
ArgumentOutOfRangeException | options.ThumbSizes contains invalid values |
- interface IImageProcessor
- interface IUploadImageOptions
- interface IUploadStorage
- enum OverwriteOption
- class UploadStorageExtensions