Line 2: | Line 2: | ||
You can set configure thumbnails by using the following settings in the configuration file: | You can set configure thumbnails by using the following settings in the configuration file: | ||
− | < | + | <source>Thumbnails.Url = BaseUrl + "_thumbs/"; |
Thumbnails.Dir = ""; | Thumbnails.Dir = ""; | ||
Thumbnails.Enabled = true; | Thumbnails.Enabled = true; | ||
Line 8: | Line 8: | ||
Thumbnails.MaxHeight = 100; | Thumbnails.MaxHeight = 100; | ||
Thumbnails.Quality = 80; | Thumbnails.Quality = 80; | ||
− | </ | + | </source> |
==== Url and Dir ==== | ==== Url and Dir ==== | ||
Line 24: | Line 24: | ||
Sets the quality level used to produce thumbnails in a range from 1 to 100. The smaller the quality the smaller the size of the thumbnail files. Notice that an acceptable value should not be less than 45. For quality thumbnails, 80 is more than sufficient. | Sets the quality level used to produce thumbnails in a range from 1 to 100. The smaller the quality the smaller the size of the thumbnail files. Notice that an acceptable value should not be less than 45. For quality thumbnails, 80 is more than sufficient. | ||
− | |||
== Image Auto Scaling == | == Image Auto Scaling == | ||
Line 33: | Line 32: | ||
To apply these options you should change values in the configuration file: | To apply these options you should change values in the configuration file: | ||
− | < | + | <source>Images.MaxWidth = 1600; |
Images.MaxHeight = 1200; | Images.MaxHeight = 1200; | ||
− | Images.Quality = 80;</ | + | Images.Quality = 80;</source> |
== Verify Image Uploads == | == Verify Image Uploads == |
Revision as of 12:34, 18 May 2010
Contents
Thumbnails
You can set configure thumbnails by using the following settings in the configuration file:
Thumbnails.Url = BaseUrl + "_thumbs/"; Thumbnails.Dir = ""; Thumbnails.Enabled = true; Thumbnails.MaxWidth = 100; Thumbnails.MaxHeight = 100; Thumbnails.Quality = 80;
Url and Dir
The Url and Dir properties defined the folder used to hold all thumbnail images, and the URL to access them. It works just like the BaseUrl and BaseDir settings.
Enabled
By setting Enabled to "false", CKFinder will have no support for thumbnails.
MaxWidth and MaxHeight
Sets the maximum size of the thumbnails displayed in CKFinder. These values are expressed in pixels.
Quality
Sets the quality level used to produce thumbnails in a range from 1 to 100. The smaller the quality the smaller the size of the thumbnail files. Notice that an acceptable value should not be less than 45. For quality thumbnails, 80 is more than sufficient.
Image Auto Scaling
It is possible to configure CKFinder to automatically scale images to fit a maximum size. If the original image size is bigger than the one specified by you, the image size will be scaled down proportionally to fit your predefined values.
You may also change the quality of the scaling algorithm in a range from 1 to 100.
To apply these options you should change values in the configuration file:
Images.MaxWidth = 1600; Images.MaxHeight = 1200; Images.Quality = 80;
Verify Image Uploads
Image files may be improperly used to inject invalid content in your web site. To enhance the security of your server, CKFinder can automatically verify image files on upload. You can use the SecureImageUploads to enable/disable this feature:
SecureImageUploads = true ;