CuteEditor for .NET

Automatic Image Resize

Automatic Image Resize

 

CuteEditor has taken steps to improve image insertion functions. A new and innovative capability is Automatic Image Resizing. If uploaded images are too large to display for your applications (for example the width of image is bigger than MaxImageWidth) , automatic resizing makes them fit and keep the original ratio automatically.

 

Turn Automatic Image Resizing On or Off

 

  

 

Automatic Image Resizing is turned on by default. But you can turn it on and off by using the following methods:

 

1: Edit security policy file:


The security policy file (default.config, admin.config and guest.config) can be found in the /CuteEditor/Configuration/Security folder. In security policy file you can find the AutoResizeUploadedImages element. By default, it contains the following value:


<
security name="AutoResizeUploadedImages">true</security>
  

You can modify the AutoResizeUploadedImages element to meet your own requirements.

For example:

<security name="AutoResizeUploadedImages">true</security>

 

2: Programmatically turn Automatic Image Resizing on and off:


C# Example:

Editor1.Setting["security:AutoResizeUploadedImages"]= "true";


VB Example:

Editor1.Setting("security:AutoResizeUploadedImages")= "true"