Hi Everyone
I’m dealing with the ImageProcessor API service, the resize function.
The App takes a picture with the tablet or iPhone and then I need to resize it.
My problem is to detect if I need to rotate that picture because as soon as I resize it it rotates 90 degrees when the phone it is on portrait (selfie).
Any ideas how to know the image size or some picture data to do the correct rotarion?
Thanks, Mario
Hi @Mario_Ghersi
Do you have a problem with the API Service or you are looking for a way to determine an image rotation position?
Regards,
Vlad
Yes, that’s my problem.
I don’t know if I need to rotate or not to present to the client.
Now I’m rotating by default assuming the portrait mode but could be wrong.
Thanks, Mario
I test the code at the link and works perfect Orientation 1 no move necessary and Orientation 6 (portrait need 90 degrees).
Any help how to add this to my coddles code page?
Just the Orientation info in a variable the rest I know how to do it.
Thanks, Mario
You can use a Custom Code
block from the Advanced category to add your custom js code