Rotate JPEG

Hi all,

I’m trying to rotate an jpeg image, using this code

var $image, $rotImage;

frm_v_image = null;//form variable
$image = plugins.images.getImage(image);
$image.rotate(90);

$rotImage= $image.getData();
frm_v_image = $rotImage;

but the image is never rotated no matter what rotate angle is use…
What am i doing wrong, I use Servoy 7.2, java 1.7.0_21 and windows 7.

Regards,

Peter

It does not rotate the image, it returns the rotated image.

I know, but whatever I try, saving to a file on disk or to a new field ect. it just refuses to rotate…:roll:

Regards,

Peter

Sent from my Nokia 6100 using Tapatalk 2

You should try

new_image = image.rotate(90)

Yes that did the trick, thanks…

Regards,

Peter

Sent from my Nokia 6100 using Tapatalk 2