Sunday, February 12, 2023

Google photos - no bulk rotate option

I had several albums of photos imported into a google photos account, which needed to be rotated left. There seems to be no bulk rotate tool. So I wrote a SikuliX script - though it takes half a second per photo, at least it'll do the job unattended:

maxi=30 #the number of images in the album
i=0
sleeptime1=0.2
sleeptime2=0.2
sleep(1.0)
while(i<maxi):  
  type("R")            #rotate
  sleep(sleeptime1)
  type(Key.RIGHT)        #go to next   
  sleep(sleeptime2)
  i=i+1

No comments:

Post a Comment