I am trying to run exiftool on aws lambda and everything runs fine except when I am trying to update image with SubSecDateTimeOriginal, it is not working.
I tried below command:
cmd = ['/opt/bin/exiftool', '-SubSecDateTimeOriginal="2021:11:30 03:47:50.084+00:00"', '-overwrite_original', '/mnt/processing/000001.jpg']
output = subprocess.run( cmd, capture_output=True )
print(output)
and it did update the DateTimeOriginal but not SubSecDateTimeOriginal
cmd = ['/opt/bin/exiftool', '-ee', '-G3', '-X', '-SubSecDateTimeOriginal', '-DateTimeOriginal', '/mnt/processing/000001.jpg']
output = subprocess.run( cmd, capture_output=True )
print(output)
and on output I am only getting DateTimeOriginal and SubSecDateTimeOriginal is missing
<ExifIFD:DateTimeOriginal>2021:11:30 03:47:50</ExifIFD:DateTimeOriginal>\n</rdf:Description>
For aws lambda environment I am using:
perl: https://shogo82148-lambda-perl-runtime-eu-west-2.s3.amazonaws.com/perl-5-34-runtime.zip
exiftool: version: 12.30
It is working perfectly on local system but not on lambda.
Can anyone please tell me, what could cause this and how can i fix it.
EDIT
I am getting this error:
1 files updated
Warning: Error converting value for ExifIFD:SubSecTimeOriginal (ValueConvInv)
can anyone tell what could be the reason?
0 Comments