Rotate JPEG

Questions, tips and tricks and techniques for scripting in Servoy

Rotate JPEG

Postby Peter de Groot » Wed Jul 31, 2013 1:25 pm

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
User avatar
Peter de Groot
 
Posts: 215
Joined: Thu Jan 10, 2008 8:38 pm
Location: Not sure...

Re: Rotate JPEG

Postby m.vanklink » Wed Jul 31, 2013 3:31 pm

It does not rotate the image, it returns the rotated image.
Michel van Klink
Vision Development
m.vanklink
 
Posts: 70
Joined: Thu Feb 23, 2012 9:15 am
Location: The Netherlands

Re: Rotate JPEG

Postby Peter de Groot » Wed Jul 31, 2013 4:12 pm

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
User avatar
Peter de Groot
 
Posts: 215
Joined: Thu Jan 10, 2008 8:38 pm
Location: Not sure...

Re: Rotate JPEG

Postby m.vanklink » Wed Jul 31, 2013 4:23 pm

You should try

Code: Select all
new_image = image.rotate(90)
Michel van Klink
Vision Development
m.vanklink
 
Posts: 70
Joined: Thu Feb 23, 2012 9:15 am
Location: The Netherlands

Re: Rotate JPEG

Postby Peter de Groot » Thu Aug 01, 2013 7:53 am

Yes that did the trick, thanks..

Regards,

Peter

Sent from my Nokia 6100 using Tapatalk 2
User avatar
Peter de Groot
 
Posts: 215
Joined: Thu Jan 10, 2008 8:38 pm
Location: Not sure...


Return to Methods

Who is online

Users browsing this forum: No registered users and 7 guests