Page 1 of 1

Rotate JPEG

PostPosted: Wed Jul 31, 2013 1:25 pm
by Peter de Groot
Hi all,

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

Code: Select all
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

Re: Rotate JPEG

PostPosted: Wed Jul 31, 2013 3:31 pm
by m.vanklink
It does not rotate the image, it returns the rotated image.

Re: Rotate JPEG

PostPosted: Wed Jul 31, 2013 4:12 pm
by Peter de Groot
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

Re: Rotate JPEG

PostPosted: Wed Jul 31, 2013 4:23 pm
by m.vanklink
You should try

Code: Select all
new_image = image.rotate(90)

Re: Rotate JPEG

PostPosted: Thu Aug 01, 2013 7:53 am
by Peter de Groot
Yes that did the trick, thanks..

Regards,

Peter

Sent from my Nokia 6100 using Tapatalk 2