Hi
I'm trialling ckfinder (integrated with fckeditor) and love it so far! I've got it working fine on one server which has the component set to "Persits.Jpeg". Thumbnails look like
.
However, on the other server which only has AspImage installed it creates the thumbnail files, but takes the top left hand corner of the image instead of creating a proper thumbnail. The thumbnails look like
I use AspImage on the website to do other image resizing and don't have this problem. Only within ckeditor.
Has anyone else had this problem? Any help or ideas would be appreciated.
Tue, 04/15/2008 - 20:52
#1
Re: AspImage thumbnails incorrect
I thought that I fixed that bug for 1.2
Re: AspImage thumbnails incorrect
You're right. I was using version 1.1 so I've changed it over to 1.2 and have it working again with Persits.Jpeg but now get question marks with AspImage instead. It's on a server with both components installed and so the only change I am making is the
Images.Add "component", "Persits.Jpeg"
line in config.asp.
I've checked AspImage works in other situations. Any thoughts? Are there any changes I can make anywhere to give you more detailed error messages to help narrow down the problem?
Thanks
Re: AspImage thumbnails incorrect
Another option would be to set in the config file a "low" value for the maximum dimensions of uploaded pictures, and then try to upload one that should be resized, check that it fails to do so, probably you won't get a useful message.
Now reload the page, and then change in the config.asp to enable the debug mode, (do the things in this order), then try to upload again the file and you might have better luck to get the error message with some info.
Please, report back any finding (although personally, I would rather use the Persists component instead of the AspImage, and for anyone else reading this, the best option at the moment seems to use the Asp.Net version as it's free)
Re: AspImage thumbnails incorrect
Type mismatch: 'expireDate'
/ckfinder/core/connector/asp/utils/Image.asp line 352
I checked both servers for the "component.expires" value and it came back as "N/A" which was presumably why it couldn't cope with the date check. I don't know if that's because it's some special version that the hosting companies have? The version number was 2.31 if that helps.
Anyway, I changed image.asp to include the line
if expiredate = "N/A" then expiredate = "01/01/2050"
at line 351 just to check if it would work when that error was removed and it did then create the thumbnails properly. So that now works on my server but I guess you'll need to allow for this value of the component's expiry date.
Let me know if you still want me to try any of the other things you suggested in your previous response though. And I agree - I'd use Persits if I could as I much prefer it as a componenet.
I did try Asp.Net as an option before, but got the same question marks. Not that I need this now but I've tried it again now that I can see the error messages and get
Error number="1" text="Error returned in call to Asp.Net"
I did ensure that .Net was enabled for the domain through my hosting account control panel, but does that mean it can't load or is the wrong version? It says the version is 2.0.50727.0
Thanks
Re: AspImage thumbnails incorrect
You don't need to test it with the other methods, they were just suggestions in case you didn't manage to use Firebug.
With regards to the asp.net problem, please add this to your web.config file in the <system.web> :
If you don't have a web.config then this would be the whole content:
(you can place the file just in the same folder that ckfinder, it doesn't have to be at the root)
Thanks
Re: AspImage thumbnails incorrect
<?xml version="1.0"?>
<Connector><Error number="1" text="Error returned in call to Asp.Net"/></Connector>
I'm going to go with AspImage anyway for now and will probably move the site over to the other (better) server which has the Persits component installed soon anyway. If the Asp.Net option is working for other people it's probably just a strange config on my hosts server!
So thanks for your help in getting the AspImage option working for me.
Re: AspImage thumbnails incorrect
Anyway, another thing that we want to improve is the debugging of problems, so it might be easier in the future to find out what's wrong with that server.
Thanks again.
Re: AspImage thumbnails incorrect