Rotating landscape images to portrait

I need to automate a task that goes through a list/folder of images, determine which are in lanscape orientation, and rotate those 90 degrees clockwise into portrait orientation.

Is there an activity that works with images natively that would be able to tell me its dimensions? I’ve tried the ImageParseActivity, but am not sure what to do with the data it outputs and have not been able to find any documentation on this activity in the forums.

If there isn’t an image activity that would allow me to manipulate images directly, I will probably try automating the Windows Explorer application.

Ok, I found out that I can use the LoadImageActivity to load an image file into an image variable, and then I can use imgLoaded.Height < imgLoaded.Width to determine if it is in Landscape mode.

Now, all I need to figure out is how to rotate the image.

Hi @tcarnes,

I have created one Activity, that can be used to rotate image.

Activity Name : SB.Image.Activities

1 Like

Thank you, it sounds like just what I need. I am looking forward to giving it a try when I get back to the office!