aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/upload
AgeCommit message (Collapse)Author
2022-07-01Descriptions from exif data with only whitespeces are considered emptyIlja
I noticed that pictures taken with Ubuntu-Touch have whitespace in one of the fields This should just be ignored imo
2022-07-01update moduledocIlja
2022-07-01Rename the Exiftool moduleIlja
No migrations or checks yet
2022-07-01Rename the new moduleIlja
2022-07-01Use EXIF data of image to prefill image descriptionIlja
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.
2022-02-25Copyright bump for 2022Sean King
2021-06-08Support metadata for video files tooMark Felder
2021-06-07Upload.Filter: use generic types in @specAlex Gleason
Speeds up recompilation by reducing compile-time deps
2021-05-18Rename upload filter to AnalyzeMetadataMark Felder
2021-05-14Support blurhashAlex Gleason
2021-05-12Add SetMeta filter to store uploaded image sizesAlex Gleason
2021-02-20Exiftool also cannot strip from heic files.Mark Felder
2021-02-20Show a proper error. A failure doesn't always mean the command isn't ↵Mark Felder
available, and we check for it on startup
2021-01-13Bump Copyright to 2021Haelwenn (lanodan) Monnier
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>;'
2020-09-08Revert/simplify.Mark Felder
We only need to check the content-type. There's no chance a webp file will get mismatched as another image type.
2020-09-08Bypass the filter based on content-type as well in case a webp image is ↵Mark Felder
uploaded with the wrong file extension.
2020-09-08Improve upload filter return values so we can identify when filters make no ↵Mark Felder
changes to the input
2020-09-08Fix uploading webp image files when Exiftool Upload Filter is enabledMark Felder
2020-08-14Mogrifun: Add a line about the purpose of the module.lain
2020-08-05Move checks to application startupRoman Chvanikov
2020-07-11Check if mogrify available before calling itRoman Chvanikov
2020-07-11Remove Logger requirementRoman Chvanikov
2020-07-11Error in Filter.Exiftool if exiftool not foundRoman Chvanikov
2020-07-11Add Pleroma.Utils.command_available?/1 and use where appropriateRoman Chvanikov
2020-07-10Remove unused @typesMark Felder
2020-07-10Add a moduledocMark Felder
2020-07-10Support Exiftool for stripping EXIF dataMark Felder
We really only want to strip location data anyway, and mogrify strips color profiles.
2020-03-03Update CopyrightsMark Felder
2019-07-16added tests for Pleroma.Upload.FilterMaksim
2019-06-30[#1026] Filter.AnonymizeFilename added ability to retain file extension with ↵Maksim
custom text
2019-02-09Credo fixes: parameter consistencyHaelwenn (lanodan) Monnier
2018-12-31update copyright years to 2019William Pitcock
2018-12-23add license boilerplate to pleroma coreWilliam Pitcock
2018-12-10Merge branch 'anonymize-filter-text' into 'develop'lambda
AnonymizeFilename: allow for a pre-defined text instead of random string See merge request pleroma/pleroma!516
2018-12-10updatesMaksim Pechnikov
2018-12-09fix compile warningsMaksim Pechnikov
2018-12-07AnonymizeFilename: allow for a pre-defined text instead of random stringhref
Improve docs
2018-11-30Upload filter: anonymize filenamehref
It replaces the original filename with a randomly generated string.
2018-11-30Uploads fun, part. 2href