Read image description from EXIF data #744

Merged
floatingghost merged 10 commits from timorl/akkoma:elseinspe into develop 2024-04-25 12:52:32 +00:00
Showing only changes of commit f50cffd134 - Show all commits

View file

@ -4,9 +4,9 @@
defmodule Pleroma.Upload.Filter.Exiftool.ReadDescription do
@moduledoc """
Gets the description from the related EXIF tags and provides them in the response if no description is provided yet.
It will first check ImageDescription, when that's too long or empty, it will check iptc:Caption-Abstract.
When the description is too long (see `:instance, :description_limit`), an empty string is returned.
Gets a valid description from the related EXIF tags and provides them in the response if no description is provided yet.
It will first check ImageDescription, when that doesn't probide a valid description, it will check iptc:Caption-Abstract.
A valid description means the fields are filled in and not too long (see `:instance, :description_limit`).
"""
@behaviour Pleroma.Upload.Filter