Thumbnails"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(Created page with 'You can set thumbnails parameters byc changing the values of the parameters: <pre>Set Thumbnails = server.CreateObject("Scripting.Dictionary") Thumbnails.Add "url", baseUrl &…')
(No difference)

Revision as of 19:23, 14 May 2010

You can set thumbnails parameters byc changing the values of the parameters:

Set Thumbnails = server.CreateObject("Scripting.Dictionary")
Thumbnails.Add "url", baseUrl & "_thumbs"
Thumbnails.Add "directory", baseDir & "_thumbs"
Thumbnails.Add "enabled", true
Thumbnails.Add "maxWidth", 100
Thumbnails.Add "maxHeight", 100
Thumbnails.Add "quality", 80
  • maxWidth and maxHeight – determine the maximum size of the thumbnails which can appear in CKFinder. These values are defined in pixels. You can obviously increase them, but the thumbnails will then look more like full-sized images than like miniatures.
  • quality – sets the quality of a thumbnail in a range from 1 to 100. The smaller the quality value, the smaller the size of the thumbnail. Notice that an acceptable quality value is about 45 and the most frequently used one is about 80.
  • directAccess – this setting may increase the overall performance of CKFinder. By default, CKFinder connects to the server connector to get the thumbnail. It is not a problem in most cases, because the connector sends the HTTP/304 Not Modified header most of the time to save the traffic and reduce server-side processing. However, sometimes it is better to leave cache control to the browser. When directAccess is set to true, thumbnails are loaded directly from the _thumbs folder by CKFinder. Note that it is impossible to use this setting, if the thumbnail directory is located outside the document root.
  • You may disable thumbnails by placing the bool value false in the enabled section.