[feat] compute (and federate) resolution and blurhash for instance's own media uploads #446
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#446
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The idea
if someone uploads an image or video on an Akkoma instance, the width, height, and blurhash should be calculated for them, and get federated with other instances (as it already happens with incoming federation from mastodon)
The reasoning
Have you searched for this feature request?
this actually already works, you need to enable the AnalyzeMetadata upload filter
maybe that should be renamed
hm, why isn't this the default behavior?
idk
just isn't
My guess is because the module requires ffprobe for width and height, which is an extra dependency[1].
One way to handle this, is to add it as a question to the
instance gen
task; Ask if people want blurhash and dimensions to be added and that ffprobe is required for it, detect if it's installed, let them know if it is or not, and default to yes when installed and default to no if not installed. This is how it's also done for stripping location data (where exiftool is required)[2].I should add that this information is not required in AP, so there may still be remote images without this. Mastodon keeps a local cache of images, so they can add it then. Akkoma does not do this. If this is considered a problem (but is probably a different issue), I see a couple of solutions:
Personally I think having a default blurhash would make most sense all things considered, but I don't use this, so maybe I'm wrong.
[1] https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/pleroma/upload/filter/analyze_metadata.ex#L64
[2] https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/mix/tasks/pleroma/instance.ex#L166