Log in or register to post comments
Last post
ImageHandler.getImageSize fails with briz.AspThumb -
Hi,

I am trying to resize an image and I get a system error, below.

I am using AspThumb which I guess doesn't have the getimagesize method. Is there something I can do about this?

Cheers, Michael

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
It was not possible to properly load the XML response from the web server.

Raw response from the server:

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'ImageHandler.getImageSize'
/ckfinder/core/connector/asp/utils/Image.asp, line 163
Re: ImageHandler.getImageSize fails with briz.AspThumb -
Um, sorry. I might have forgot to test and update all the options, as the main testing is performed with the asp.net option

I'll try to fix that, but don't expect anything before the weekend
Re: ImageHandler.getImageSize fails with briz.AspThumb -
I've started checking it and it might be easy, although I'll try to review everything as there might be other missing features.

For the moment I've noticed that this isn't really a good option: the only format that it generates is jpeg, so even if you see a file with .png or .gif extension, it's really a .jpg
and requesting a thumbnail that should be 100x70, I got 101x70 instead.
Re: ImageHandler.getImageSize fails with briz.AspThumb -
Hi alfonsoml,

I know I'm a pain being stuck in classic mode, thanks for your help. I don't know if it helps but I've used the following elsewhere. Maybe I can just update one of your asp pages to do this instead of using the Asptyhumb utility for that bit. Or if you can do it and send me the replacement file.

sub imagesize(img)
dim myImg, fs
Set fs= CreateObject("Scripting.FileSystemObject")
if not fs.fileExists(img) then exit sub
set myImg = loadpicture(img)
iWidth = round(myImg.width / 26.4583)
iHeight = round(myImg.height / 26.4583)
set myImg = nothing
end sub
Re: ImageHandler.getImageSize fails with briz.AspThumb -
The pain is not using classic asp, but choosing to use briz.AspTumb instead of the preferred asp.net callback. That's the option used by most of the people and the one that it's constantly tested, while the other options might have unexpected bugs, some on the integration and others in the component itself as I've reported in the previous post.

I've written the code for getImageSize, but as I said now I have to review the rest of components and review that any other feature is also correct (I saw a pending fixme in the file).
Re: ImageHandler.getImageSize fails with briz.AspThumb -
alfonsoml wrote:The pain is not using classic asp, but choosing to use briz.AspTumb instead of the preferred asp.net callback. That's the option used by most of the people and the one that it's constantly tested, while the other options might have unexpected bugs, some on the integration and others in the component itself as I've reported in the previous post.

I've written the code for getImageSize, but as I said now I have to review the rest of components and review that any other feature is also correct (I saw a pending fixme in the file).


I understand, I've been using AspThumb for quite some time and it's been fine for me to date. If you can do something to work around the getImageSize problem I'd be most grateful as I have a large number of sites using AspThumb and I've purchased the developer licensing with a view to rolling out the new version of ckeditor & ckfinder to those sites.

BTW, I had a look at the example of the V4 beta. The real time editing is awesome. Having just purchased the licensing will I be able to use that version? When will it be released? I'll wait for that before rolling V3 out to my sites if it's not far off.

Cheers,

Michael
Re: ImageHandler.getImageSize fails with briz.AspThumb -
I really hope that you didn't buy the AspThumb license in order to use it with CKFinder. The only asp image component that seems to work reliabily and passes all my tests is Persists Jpeg, it's able to do all the things that are currently required by CKFinder.
On the other side these are some of the problems that I've found with AspThumb:

  • It only outputs jpg images, so if you upload a png or gif, if it's resized it will be converted to a jpg (the extension might say that it's png, but quality tells the truth)

  • Of course, anything related to transparency in gifs and pngs or gif animations is simply not possible

  • Resizing doesn't seem to be too accurate, I request a 100x70 thumbnail and I got 101x70 instead.

  • The watermark feature is not available, it doesn't support merging two images at all.


Other components also suffer from a number of problems, so this needs some thought, but I don't discard to drop support for the buggiest ones in the future.

The recommended option in CKFinder is to use the Asp.net option, you don't have to change anything in your pages, just verify that it's correctly installed, adjust the temp folder paths and usually that's enough and in any case the helper script is able to find out the problems to make it work.

Anyway, here's the updated file, replace the existing /ckfinder/core/connector/asp/utils/image.asp and it should fix your problem. Image.zip

Attachments: 

AttachmentSize
image.zip6.75 KB
Re: ImageHandler.getImageSize fails with briz.AspThumb -
Thanks for that. Really appreciate it.

I purchased AspThumb many years ago.

I'll investigate the .net option in a while once things quieten down a bit for me.

Cheers, michael