Hi all,
I would like to be able to use the config to set the maximum image width / height on a per $config['ResourceType'] basis - is this possible? (or a workaround would be good too)
bascally - despite it being easy to set the size of images in the wysiwyg > add image dialog the "end user" doesn't always remember the image sizes for certain areas of thir website - e.g a header image for an article may be one size and the blog header image may be another size, the news header image may be anothre size again.
to simplify the end users task I would like to have the folders set as follow...
$config['ResourceType'][] = Array(
'name' => 'Page Content',
'url' => $baseUrl . 'page_images',
'directory' => $baseDir . 'page_images',
'maxSize' => 0,
'maxWidth' => 200,
'maxHeight' => 200,
'allowedExtensions' => 'bmp,gif,jpeg,jpg,png',
'deniedExtensions' => '');
I would like to be able to use the config to set the maximum image width / height on a per $config['ResourceType'] basis - is this possible? (or a workaround would be good too)
bascally - despite it being easy to set the size of images in the wysiwyg > add image dialog the "end user" doesn't always remember the image sizes for certain areas of thir website - e.g a header image for an article may be one size and the blog header image may be another size, the news header image may be anothre size again.
to simplify the end users task I would like to have the folders set as follow...
$config['ResourceType'][] = Array(
'name' => 'Page Content',
'url' => $baseUrl . 'page_images',
'directory' => $baseDir . 'page_images',
'maxSize' => 0,
'maxWidth' => 200,
'maxHeight' => 200,
'allowedExtensions' => 'bmp,gif,jpeg,jpg,png',
'deniedExtensions' => '');
Re: image/thumbnails size per folder?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: image/thumbnails size per folder?
Am I right in thinking then - that once the config.php is called the file is now in the folder designated by the ResourceType? so if at the end if config.php I (crudely speaking) add a switch($_GET[type]) then manipulate the file as needed ?
--i guess i'm asking where in the process i get to play with the file without being too soon and messing ck-things up
(obviously a sanitized $_GET)
Re: image/thumbnails size per folder?
You can do there for example something like:
Or even change baseDir / baseUrl using session variables.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: image/thumbnails size per folder?