Line 3: | Line 3: | ||
'url' => $baseUrl . '_thumbs', | 'url' => $baseUrl . '_thumbs', | ||
'directory' => $baseDir . '_thumbs', | 'directory' => $baseDir . '_thumbs', | ||
+ | 'directAccess' => false, | ||
+ | 'bmpSupported' => false, | ||
'enabled' => true, | 'enabled' => true, | ||
'maxWidth' => 100, | 'maxWidth' => 100, |
Revision as of 14:44, 15 December 2008
You can set thumbnails parameters by changing the following values:
$config['Thumbnails'] = Array( 'url' => $baseUrl . '_thumbs', 'directory' => $baseDir . '_thumbs', 'directAccess' => false, 'bmpSupported' => false, 'enabled' => true, 'maxWidth' => 100, 'maxHeight' => 100, 'quality' => 80);
- maxWidth and maxHeight determines the maximum size of the thumbnails which can appear in CKFinder. These values are expressed in pixels. Of course you can increase them but than the thumbnails will look more like the full-sized images rather than miniatures.
- quality sets the quality of the thumbnail in a range from 1 to 100. The smaller the quality the smaller the size of the thumbnails. Notice that an acceptable value of the quality is about 45 and the mostly used is about 80.
- directAccess is a setting that 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 directory with thumbnails resides outside the document root.
- You may disable the thumbnails by placing the bool value false in the enabled section.