Skip to main content
johnrellis
Legend
Dec 12, 2021 3:13 AM UTC
Open for Voting

P: SDK: Provide a method to flip photos

The SDK provides no way for a plugin to flip a photo horizontally or vertically. There is photo:rotateRight() and photo:rotateLeft() but no analogous methods for flipping.

 

My Any Crop plugin would use this to provide a command to restore a photo to its original orientation.  It has a command for doing that with rotation but not flipping.

 

My Copy Settings plugin's Extract Masks command would use this to extract the masks of flipped photos.

 

2 replies

C.Cella
Legend
Nov 12, 2026 7:36 AM UTC

What I personally suggested to the team in the past is to let photo:applyDevelopSettings() set "orientation"

That settings governs all, is the key to all.

 

P.s.

And I actually think that Lightroom should allow to copy and sync orientation which at the moment doesn't allow.

So if you have an original and you want to paste to a virtual copy the virtual copy will not get the correct orientation, not sensible.

 

Translate
Ramoses
Inspiring
Nov 11, 2026 10:59 PM UTC

Upvoting it. I need it as well in my plugin and it doesn't take too much considering AI will do the entire job for the devs.

Translate