Page 1 of 1

Import an image, rotate, save.

Posted: Sun Jul 22, 2018 6:39 am
by Googie85
Hi Guys!!

I have browsed the forums and I am still having issues with rotating an image and saving it. I have the following line of code:

Code: Select all

   rotate image "temp" by 90

The target OS is Android.


Many Thanks,

Googie.

Re: Import an image, rotate, save.

Posted: Sun Jul 22, 2018 10:44 am
by Klaus
Hi Googie,

do not use rotate but: set the angle of img xyz to ...
Please check the differences in the dictionary.

Code: Select all

...
put specialfolderpath("documents") & "/the_rotated_image.jpg" into tImageFile
set the angle of img "temp" to 90
export img "temp" to file tImageFile as JPEG
...
Best

Klaus