Top menu






eZCrop

Still trying to find ways to improve eZPublish, I've thought about a simple process to resize pictures without having to download the picture, to resize in whatever image software and then, upload it again in eZPublish.

My aim is resizing and not scaling. It means that we are losing some information by cropping the picture that we are not losing by resizing. I'm just specifying this point because it's not a extension of the image.ini / image_class mechanism, but a new functionality which allow the user to cut himself a square in his picture. I guess a picture of the result is more obvious :

 

You can download it as usually on ez.no.

It uses a JavaScript library coded by David Spurr and the Scriptaculous library.

Comments

Javascript Error

Hello
Thank you for your answer. I also have an error with IE, in french it say : "Exception levée mais non décelée". It's the first time I see an error like this... and it's really strange...
In the eZ debug, I have this error :
Error: eZTemplate @ design/admin/templates/pagelayout.tpl:182[0]
Cannot retrieve attribute of a boolean
It seems to come from the template /admin/templates/page_toppath.tpl. Does this tells you something ?
Thank you

Doesn't work

According to this website, it's typically a XUL error on Firefox.

http://www.activewidgets.com/javascript.forum.3865.1/finally-solved-ns_error_xpc_js_threw_string.html

Does it do the same thing under IE ?

Doesn't work !

Hi !
I have installed this extension on my ezpublish 4.0 website and I have a javascript error when I click on the "Crop" button. With firebug I can see this message : [Exception... "'Parse error in selector: '[name^=MoveDown_]'' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
I don't understand the problem. Have you an idea ?
Thank you