Hi again,
seems like all my post contains problems, anyway the CKFinder is working ok for simple image upload, now i've enabled the thumbs function like this
but the thumbs are not being created. also I cannot see the thumbs folder, but it's there.
then i tried this
If i do this in the thumbs folder another images folder is being created with another copy of the image...
hmm, I just have thought about something that might be the problem, I'm hosting on dreamhost, and maybe the resolve_url is not working correctly with it...
Anyway if you know what i might have done wrong let me know, thanks in advance
seems like all my post contains problems, anyway the CKFinder is working ok for simple image upload, now i've enabled the thumbs function like this
$baseUrl = '/media/'; $baseDir = resolveUrl($baseUrl); $config['Thumbnails'] = Array( 'url' => $baseUrl . 'thumbs', 'directory' => $baseDir . 'thumbs', 'enabled' => true, 'maxWidth' => 150, 'maxHeight' => 150, 'quality' => 80);
but the thumbs are not being created. also I cannot see the thumbs folder, but it's there.
then i tried this
$config['Thumbnails'] = Array( 'url' => $baseUrl . 'images/thumbs', 'directory' => $baseDir . 'images/thumbs', 'enabled' => true, 'maxWidth' => 150, 'maxHeight' => 150, 'quality' => 80);
If i do this in the thumbs folder another images folder is being created with another copy of the image...
hmm, I just have thought about something that might be the problem, I'm hosting on dreamhost, and maybe the resolve_url is not working correctly with it...
Anyway if you know what i might have done wrong let me know, thanks in advance
Re: CKFinder 1.1 integrated with FCKeditor thumbnail problem
Hi,
First of all, make sure that GD extension is installed on your server. Create a info.php file, add this code:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKFinder 1.1 integrated with FCKeditor thumbnail problem
nice now it seems to work, i'm not completely shure what i've changed though.. anyway about the thumbs folder,
in the CKFinder sidebar I can see the Images Folder, BUT I cannot see the Thumbs folder, so I cannot select it.
i've set thumbs to /media/thumbs/
and images to /media/images/
1) is there a way to make the thumbs folder show up?
2) Or automatically set the url of the image to the thumb-url once we select it ?
3) How can I avoid a subfolder(Images) in the thumbs folder is being created?
Sorry that i'm not digging into the code, but i'm working on a project myself, and if I start to dig in your code I'm getting all confused!
Ciao, Sebastiano
Re: CKFinder 1.1 integrated with FCKeditor thumbnail problem
Ad 1) It's possible to show the thumbnails folder to the end user. To do this, add the new resource type, for example named Thumbnails.
Point the resource type to the thumbnails folder (or to the subfolder, e.g.: "/media/thumbs/Images/").
Be sure to disable any action other than folderView and fileView to this folder.
Ad 2) It sounds to me like a good idea, we'll definitely consider adding this feature.
Ad 3) It's currently impossible, let me explain you why we chose to do it this way: suppose you have two resource types named Company1 and Company2, if you upload the different logo file with the same name, e.g logo.jpg, in both resource types you would see the same thumbnail. If you really want to do this, you have to hack the source code and adjust it to your needs (core\connector\php\php5\Core\FolderHandler.php, getThumbsServerPath() function).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKFinder 1.1 integrated with FCKeditor thumbnail problem
First of all thanks for you time, to read my messages and your simple but effective answers, As an programmer I know it is not easy to answer all the questions you receive on a product but I've learned one thing and that is that based on the questions you receive we can continue development.
Anyway ones you have explained to me the reason or the thumb all got clear to me, so if I set image url to "foo/" the thumbs can be found in thumbs/foo/ if thumbs folder is thumbs.
maybe you could add an array value to the thumnail array named "multi" if set to true it will work like it is currently working , if set to false it will work like a "mono-install" thumbnails are stored directly into thumbs folder. BUT if you say you are working on AD 2, I will wait for that , anyway i think it is a good thing once we select an image to be shown on a website we get to see the thumb and this thumb is linked to the full image .. something like this =
<a href="/$imagepath/$thumbspath/$imagepath/$image"><img src="/$imagepath/$image"<a>
if this can be done, it would ad a few points to the FCKeditor & CKFinder for sure .
anyway you should try to put the thumbs folder into the images folder and see what happens, I think there are to many folders that are being created.
Image -> thumb -> image -> thumb -> image.. and the last 2 folders are empty. maybe it is a bug , I'm not sure...
Re: CKFinder 1.1 integrated with FCKeditor thumbnail problem
Thanks for your comments. We are open for suggestions and, as you wrote, feedback from CKFinder users help us significantly in development.
If thumbnails are enabled, each image file has its own thumbnail created. After you have placed the thumb folder inside the Image resource type, thumbnails of thumbnails are being created recursively... and so on. It looks to me that the thumbnail configuration (at least enabling/disabling) should be configurable at the resource type & directory level.
This way, when you disable creating thumbnails for thumb directory inside the Image resource type, no additional thumbnails for this folder would be created.
In the meantime you can hack the core to disable thumbnails creation for "thumb" folder.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+