1514 Brennpunkt

https://w3id.org/class/redaktor/focalPoint

JSON

Inbox

Definition

Mastodon unterstützt das Setzen eines Brennpunkts für hochgeladene Bilder, so dass der Brennpunkt überall dort, wo das Bild angezeigt wird, im Blickfeld bleibt. Dies wird durch eine zusätzliche Eigenschaft focalPoint für Image-Objekte realisiert. Die Eigenschaft ist einfach ein Array aus zwei Fließkommazahlen zwischen -1,0 und 1,0, wobei 0,0 die Mitte des Bildes ist, der erste Wert x (-1,0 ist der linke Rand, +1,0 ist der rechte Rand) und der zweite Wert y (-1,0 ist der untere Rand, +1,0 ist der obere Rand). Weitere Informationen finden Sie unter [Brennpunkte] (https://docs.joinmastodon.org/methods/statuses/media/#focal-points).
siehe mastodon documentation

Scope Note

ActivityPub Community

Example

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "toot": "http://joinmastodon.org/ns#",
      "focalPoint": {
        "@container": "@list",
        "@id": ":focalPoint"
      }
    }
  ],

  "id": "https://example.com/@alice/hello-world",
  "type": "Note",
  "content": "A picture attached!",
  "attachment": [
    {
      "type": "Image",
      "mediaType": "image/png",
      "url": "https://example.com/files/cats.png",
      "focalPoint": [
        -0.55,
        0.43
      ]
    }
  ]
}