Browse Source

Merge pull request #356 from tudacs/iptc_headline

Extract IPTC Headline
pull/357/head
Simon Conseil 7 years ago committed by GitHub
parent
commit
c45d6e80d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      sigal/image.py

4
sigal/image.py

@ -259,6 +259,10 @@ def get_iptc_data(filename):
if raw_iptc and (2, 120) in raw_iptc:
iptc_data["description"] = raw_iptc[(2, 120)].decode('utf-8')
# 2:105 is the IPTC headline property
if raw_iptc and (2, 105) in raw_iptc:
iptc_data["headline"] = raw_iptc[(2, 105)].decode('utf-8')
return iptc_data

Loading…
Cancel
Save