Skip to content

Commit

Permalink
add cwebp comment to csv2img-exif
Browse files Browse the repository at this point in the history
  • Loading branch information
doofus-01 authored Aug 4, 2024
1 parent 07c7f95 commit c785373
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/csv2img-exif
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def write_exif(target,date_value,copyright_value,artist_value,usercomment_value)
date_value = datetime.today().strftime("%Y:%m:%d %H:%M:%S")
return str(check_output(["exiftool", "-overwrite_original", "-all=", "-ModifyDate=now", "-CreateDate=%s" % date_value, "-Copyright=%s" % copyright_value, "-Artist=%s" % artist_value, "-UserComment=%s" % usercomment_value, target]), 'UTF-8')

# This cwebp call is to work around a current exiftool limitation, where RIFF alpha tags cannot be written, yet are needed by Extended (because we now include Exif tags) WEBP if there is to be any transparency.
def fix_webp(target):
return str(check_output(["cwebp", "-quiet", "-mt", "-z", "9", "-metadata", "exif", target, "-o", target]), 'UTF-8')

Expand Down

0 comments on commit c785373

Please sign in to comment.