View Single Post
Old 05-14-2024, 05:32 PM   #10
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 906
Karma: 3501166
Join Date: Jan 2017
Location: Poland
Device: Various
Here code:

Code:
import exiftool

with exiftool.ExifTool() as et:
    alt_text_from_exif = et.execute("-XMP:Alt Text Accessibility", "test.jpg")
    alt_text_from_exif = alt_text_from_exif.replace('[XMP]           Alt Text Accessibility          : ', '')
    print(alt_text_from_exif)
For image https://www.mobileread.com/forums/at...5&d=1715716506
result: A monk, holding a stick in his left hand and a bowl in his right hand, stands in front of a crowd of peopple.
BeckyEbook is offline   Reply With Quote