Question: how to transfer files from onedrive to google photos?
Answer: Install the Google Photos Backup desktop app, sign in with your Google credentials.
Uncheck any unwanted desktop folders, select "Add..." and instead select the OneDrive folders that are syncing.
Choose whether you want "High quality" (free) or "Original" (paid storage) versions to be uploaded.