1. 01 Jul, 2022 4 commits
    • Ilja's avatar
      Descriptions from exif data with only whitespeces are considered empty · 56227ef7
      Ilja authored
      I noticed that pictures taken with Ubuntu-Touch have whitespace in one of the fields
      This should just be ignored imo
    • Ilja's avatar
      Change test pictures · 4a9ed319
      Ilja authored
      The previous pictures were labeled as public domain, but are actually a collage of pictures under other licenses.
      I now replaced them with a jpeg of simply a white pixel.
    • Ilja's avatar
      Rename the new module · 551721e4
      Ilja authored
    • Ilja's avatar
      Use EXIF data of image to prefill image description · cd316d72
      Ilja authored
      During attachment upload Pleroma returns a "description" field. Pleroma-fe has an MR to use that to pre-fill the image description field, <pleroma-fe!1399>
      * This MR allows Pleroma to read the EXIF data during upload and return the description to the FE
          * 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 no description is found, it will simply return nil, just like before
      * When people set up a new instance, they will be asked if they want to read metadata and this module will be activated if so
      This was taken from an MR i did on Pleroma and isn't finished yet.