Imageresize -plugin seems to have something wrong with it, or perhaps I'm doing something wrong.
I'm using CKFinder 2.0.2 with CKeditor 3.5.2.
When trying to resize images there's few weird things happening. I can only resize the image to it's current size. When entering too large numbers it will max them at current image size. It creates the 'resized' image correctly. I can't resize it larger than the original at all. But also, when trying to resize the image smaller than the original, it throws an error 'It was not possible to complete the request due to file system permission restrictions'
So, no problems with file system permissions when doing exact copy of the image, but when trying to scale down, file system permissions aren't enough? Where it is trying to save the scaled down picture?
Also, the checkboxes for creating a thumbnail don't do anything. You select thumbnail size, click ok. And it says 'Image resized succesfully'. No images appear on the _thumbs folder or in the working directory...
It creates thumbnails nicely, when uploading new images, but how to make working thumbnails for existing images?
What am I missing?
I'm using CKFinder 2.0.2 with CKeditor 3.5.2.
When trying to resize images there's few weird things happening. I can only resize the image to it's current size. When entering too large numbers it will max them at current image size. It creates the 'resized' image correctly. I can't resize it larger than the original at all. But also, when trying to resize the image smaller than the original, it throws an error 'It was not possible to complete the request due to file system permission restrictions'
So, no problems with file system permissions when doing exact copy of the image, but when trying to scale down, file system permissions aren't enough? Where it is trying to save the scaled down picture?
Also, the checkboxes for creating a thumbnail don't do anything. You select thumbnail size, click ok. And it says 'Image resized succesfully'. No images appear on the _thumbs folder or in the working directory...
It creates thumbnails nicely, when uploading new images, but how to make working thumbnails for existing images?
What am I missing?
Re: imageresize plugin for php problems
'It was not possible to complete the request due to file system permission restrictions" - this error is thrown when CKFinder is unable to save the file in the current folder.
It is impossible to resize the image to a size bigger than the original size.
Does resizing work for you at all using this plugin? Please try it in an empty folder with just one image file, to see better whether some extra images have been created.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: imageresize plugin for php problems
The imageresize plugin did not create images in the current directory (Tried with new directory with single image) either. I had earlier version of ckfinder, and updated it to 2.0.2 and the issue remains.
When "resizing" to same size as the original a copy with new name is created correctly. But when trying to do a smaller one it pops up with the error message about file permissions.
Permissions seem to be adequate for uploading the file, copying it, renaming it and deleting it. But when trying to scale the image down (that is when actually doing some resizing), it throws up an error.
Also, noticed some issues with (what I thought was with) the translation. Ckfinder lists folders as 'Images' and 'Files' instead of the actual folder names or even the finnish translations that I'm using. Despite that, the files uploaded and deleted are in the correct folders. But now I think there's a bit more than weird translation issue because ckfinder also creates the thumbnail directories accordingly as Images and Files regardless of the working directory actual name. Perhaps this is the reason why it also fails to actually create any thumbnails now in version 2.0.2...
I'll have to dig into it a bit...
Re: imageresize plugin for php problems
In case of PHP, could you uncomment the following lines in config.php?
Let me know what errors CKFinder showed up after trying to resize an image file.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: imageresize plugin for php problems
Php reports no errors. I get just the ckfinder error message about insufficient privileges. Now it also refuses to change language with config.js directive config.language='en', which is ignored and defaulted to finnish
edit: downloaded a fresh install and the problems persist. The problem I had with generating thumbnails apparently is because of this image resize issue. If I upload an image small enough, let's say 90x90 it will generate thumbnail happily. This was apparently caused by the max thumbnail size setting in the config that I just noticed. I thought it would create a thumbnail to that size even if the original picture would have larger dimensions. Image resizing doesn't work on even the smaller images of which thumbnails are correctly generated...
edit: and hunted down the error down to 'JPEG images are not supported'...
Re: imageresize plugin for php problems
Did you mean that in your PHP installation, GD was simply not installed?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: imageresize plugin for php problems
Ok, got this fixed. GD was installed, but not with jpg support.
After adding that little thing too image resizing started to work
Error messages were a bit confusing