Representing images

Just want to mention too, that koehn’s example is perfect.
“Be liberal in what you accept and strict in what you send” –

So, I wonder if mastodon has ever read the specification for ActivityStreams Core where it reads
Care should be taken to not unduly overlap with or duplicate the existing Object types.

An Image is an Image is an Image …

This is what I wrote here, in @redaktor it is a srcset

It is also a bad decision to let mediaType decide over ActivityPub type like mastodon !
In the real world one ActivityPub "type":"image" can have multiple mediaType and this is super useful if you let the browser decide in the srcset, e.g. webp for modern or jpeg for old-school …


@koehn please note that the posted examples from mastodon and pleroma are imho invalid
the specification clearly says for mediaType

When used on a Link, identifies the MIME media type of the referenced resource.

When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.

Document is an Object but the examples try to describe the mediaType of url
so: Your posted example is “correct” … :slight_smile: