namespace: Serenity.Web assembly: Serenity.Net.Services
Depending on the image upload options, scales image, creates default and additional thumbs and saves them to the upload storage files.
public static string ScaleImageAndCreateAllThumbs(object image, IImageProcessor imageProcessor,
IUploadImageOptions options, IUploadStorage uploadStorage, string temporaryFile,
OverwriteOption overwrite)
parameter | description |
---|---|
image | Input image |
imageProcessor | Image processor |
options | Upload image options |
uploadStorage | Upload storage |
temporaryFile | Temporary file |
overwrite | Overwrite option |
Temporary file
- interface IImageProcessor
- interface IUploadImageOptions
- interface IUploadStorage
- enum OverwriteOption
- class UploadStorageExtensions