pyexiftool icon indicating copy to clipboard operation
pyexiftool copied to clipboard

How to write yaw,pitch,roll information to an image?

Open zhudaoruyi opened this issue 5 years ago • 3 comments

I want to write yaw pitch roll of the image ,but don't know how to do,the following can't work

import exiftool

img_name = 'sam.jpg'

with exiftool.ExifTool() as et:
    et.execute("-Yaw=21.123\n-Pitch=10.101\n-Roll=-7.252", img_name)

zhudaoruyi avatar Nov 23 '18 02:11 zhudaoruyi

that's probably not the way to do it... you need to separate the things out into different parameters.

et.execute("-Yaw=21.123", "Pitch=10.101", "-Roll=-7.252")

Btw, my fork has some fixes https://github.com/sylikc/pyexiftool

sylikc avatar Jan 30 '22 18:01 sylikc

Hi Sylikc, could you please give me the full example? where do you put the filepath? is it as a 4th parameter?

deweydb avatar Feb 10 '22 18:02 deweydb

yes, the image name... i left that off of the command

et.execute("-Yaw=21.123", "-Pitch=10.101", "-Roll=-7.252", img_name)

sylikc avatar Feb 10 '22 18:02 sylikc