Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 596
    • Issues 596
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 99
    • Merge requests 99
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Pleroma
  • pleromapleroma
  • Merge requests
  • !3535

Use EXIF data of image for image description

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ilja requested to merge ilja/pleroma:image_description_from_exif_data into develop Nov 14, 2021
  • Overview 15
  • Commits 11
  • Pipelines 23
  • Changes 19

Related to #2780 (fixes the first part of the issue)

During attachment upload Pleroma returns a "description" field. Pleroma-fe uses that to pre-fill the image description field, pleroma-fe!1399 (merged).

  • This MR allows Pleroma to read the EXIF data during upload and return a relevant description to the FE based on the specific EXIF fields for caption and description
    • If a description is already present (e.g. because a previous module added it), it will use that
    • Otherwise it will read from the EXIF data. First it will check -ImageDescription, if that's empty, it will check -iptc:Caption-Abstract. If someone with more knowledge in these things believes other fields or order should be used, please let me know. Otherwise it can always be changed in a later MR if that turns out to be needed.
    • If no description is found, the module will simply return nil, which is the value it had before
  • When people set up a new instance, they will be asked if they want to use the EXIF data for this and this module will be activated if so.

In a later MR I want to make it possible to write the description to the EXIF data. That way image descriptions will be more portable (i.e. you can download an image, re-upload it, and image descriptions will remain intact), see #2780.

Edited May 21, 2022 by Ilja
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: image_description_from_exif_data