UploadStorageExtensions.CreateDefaultThumb method
namespace: Serenity.Web assembly: Serenity.Net.Services
Creates the default thumbnail for image if the size is provided in the upload image options (ThumbWidth and ThumbHeight >= 0) and saves it to the target upload storage file
public static string CreateDefaultThumb(object image, IImageProcessor imageProcessor,
IUploadImageOptions options, IUploadStorage uploadStorage, string temporaryFile,
OverwriteOption overwrite)
| parameter | description |
|---|---|
| image | Image |
| imageProcessor | Image processor |
| options | Upload image options |
| uploadStorage | Upload storage |
| temporaryFile | Input temporary file |
| overwrite | Overwrite option |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | image, options or temporaryFile is null |
See Also
- interface IImageProcessor
- interface IUploadImageOptions
- interface IUploadStorage
- enum OverwriteOption
- class UploadStorageExtensions