From bdffa9aa83eb9d804db632a63f8db617760a7f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sun, 21 Jan 2024 18:22:18 +0100 Subject: [PATCH] add ideas file --- ideas.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ideas.md diff --git a/ideas.md b/ideas.md new file mode 100644 index 0000000..0bee446 --- /dev/null +++ b/ideas.md @@ -0,0 +1,21 @@ +# Focal Point + +Support various focal point plugins, because on ActivityPub we have less control how images are rendered on the other side. + +https://docs.joinmastodon.org/spec/activitypub/#focalPoint + +## Image Background Focus Position + +https://www.wordpress-focalpoint.com/ + +Meta field: `bg_pos_desktop` +Value: string, e.g. `50% 50%`, like the css option [object-position](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) + + +## WP Smart Crop + +https://www.wpsmartcrop.com/download/ + +Meta field if enabled for this image: `_wpsmartcrop_enabled` bool +Meta field: `_wpsmartcrop_image_focus` +Value: array with keys `top` and `left` which are floats.