summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorIlja <ilja@ilja.space>2022-02-14 13:14:25 +0100
committerIlja <ilja@ilja.space>2022-07-01 12:13:46 +0200
commitcd316d7269a6cac1e9edb732b202343001b82399 (patch)
tree05a05342f28644c142bb7f280dcf928a8801c38a /test/fixtures
parent75f912c63f9a18e37f8ddbd403755b878467435a (diff)
downloadpleroma-cd316d7269a6cac1e9edb732b202343001b82399.tar.gz
pleroma-cd316d7269a6cac1e9edb732b202343001b82399.zip
Use EXIF data of image to prefill image description
During attachment upload Pleroma returns a "description" field. Pleroma-fe has an MR to use that to pre-fill the image description field, <https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/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.
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/portrait_of_owls_caption-abstract_tmp.jpgbin0 -> 958147 bytes
-rw-r--r--test/fixtures/portrait_of_owls_imagedescription_and_caption-abstract_tmp.jpgbin0 -> 958193 bytes
-rw-r--r--test/fixtures/portrait_of_owls_no_description_tmp.jpgbin0 -> 958065 bytes
3 files changed, 0 insertions, 0 deletions
diff --git a/test/fixtures/portrait_of_owls_caption-abstract_tmp.jpg b/test/fixtures/portrait_of_owls_caption-abstract_tmp.jpg
new file mode 100644
index 000000000..f5fe63999
--- /dev/null
+++ b/test/fixtures/portrait_of_owls_caption-abstract_tmp.jpg
Binary files differ
diff --git a/test/fixtures/portrait_of_owls_imagedescription_and_caption-abstract_tmp.jpg b/test/fixtures/portrait_of_owls_imagedescription_and_caption-abstract_tmp.jpg
new file mode 100644
index 000000000..0b8b85754
--- /dev/null
+++ b/test/fixtures/portrait_of_owls_imagedescription_and_caption-abstract_tmp.jpg
Binary files differ
diff --git a/test/fixtures/portrait_of_owls_no_description_tmp.jpg b/test/fixtures/portrait_of_owls_no_description_tmp.jpg
new file mode 100644
index 000000000..d63d40af8
--- /dev/null
+++ b/test/fixtures/portrait_of_owls_no_description_tmp.jpg
Binary files differ