Please see the Examples:
The PostProcessingFilter property allows to set one or more image processing filter to apply to the uploaded image.
You can, for example, use this property to automatically resize an uploaded image or apply any other kind of ImageProcessingFilter.
This feature can be used in combination with the image editor (please see Controlling The WYSYWIG Image Editor Tool).
In this case it's important to note that the filter is applied to the edited image.
You can use an instance of the ImageProcessingFilterCollection to apply more than one filter.
ImageProcessingFilterCollection filter = new ImageProcessingFilterCollection();
That is equivalent to:
ImageUpload1.PostProcessingFilter = new ScaledResizeConstraint(300, 300) + new ImageWatermark("~/MyWatermark.jpg");
A common scenario is to disable the image editor and use PostProcessingFilter to automatically process an image.
In this way, you can for example, allow a final user to upload & resize an image with a single click:
protected void Page_Load(object sender, EventArgs e)
this.ImageUpload1.EnableEdit = false;
this.ImageUpload1.PostProcessingFilter = new ScaledResizeConstraint(300, 300) + new ImageWatermark("~/MyWatermark.jpg", ContentAlignment.BottomRight);
Other information about the PostProcessingFilter property: