documentation/ideas.md

22 lines
661 B
Markdown
Raw Normal View History

2024-01-21 18:22:18 +01:00
# 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.