Hi,
does anybody know how to define a maxWidth and maxHeight for a specific RessourceType or folder?
I have 2 Folders with Images and in one of them there should be only images with 150x150 px
in the other folder the images can have a higher resolution
thanks for help
does anybody know how to define a maxWidth and maxHeight for a specific RessourceType or folder?
I have 2 Folders with Images and in one of them there should be only images with 150x150 px
in the other folder the images can have a higher resolution
thanks for help

Re: maxWidth for RessourceType
$config['_RESOURCE_FOLDER_'] = Array(
'maxWidth' => 150,
'maxHeight' => 150,
'quality' => 80);
Oli
Re: maxWidth for RessourceType
for each resource type?
It is not implemented in CKFinder, however because config file is a server side script, you can actually easily do it by checking the query string.
Sample change for PHP version of CKFinder:
// Set different values for the "Files" resource type if (!empty($_GET['type']) && $_GET['type']=='Files') { $config['Images'] = Array( 'maxWidth' => 1600, 'maxHeight' => 1200, 'quality' => 80); } // default values for other resource types else { $config['Images'] = Array( 'maxWidth' => 300, 'maxHeight' => 250, 'quality' => 80); }The solution suggested by olirav will not work.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+