Checking in on a few things!
It looks like there is a good bit of interest and activity here, so I wanted to see who’s interested in taking the lead here to create an initial lexicon and start implementing use to demonstrate the need and satisfaction of the need.
Looking back at the draft in the first post, this is the shape I see:
{
"lexicon": 1,
"id": "community.lexicon.media.image",
"defs": {
"main": {
"type": "record",
"description": "A standalone image.",
"key": "tid",
"record": {
"type": "object",
"required": ["image", "dimensions", "createdAt"],
"properties": {
"image": {
"type": "blob",
"description": "The image content itself.",
"accept": ["image/*"],
"maxSize": 1000000
},
"dimensions": {
"type": "ref",
"ref": "#dimensions",
"description": "The dimensions of the image."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "The date and time that the record was created."
},
"alt": {
"type": "string",
"description": "Text used to describe the image for screen readers and accessibility purposes.",
"maxGraphemes": 1000,
"maxLength": 10000
}
}
}
},
"dimensions": {
"type": "object",
"description": "The pixel dimensions of the image. The aspect ratio may be derived from these values.",
"required": ["width", "height"],
"properties": {
"width": {
"type": "integer",
"minimum": 1,
"description": "The width of the image in pixels."
},
"height": {
"type": "integer",
"minimum": 1,
"description": "The height of the image in pixels."
}
}
}
}
}
One change that I’d like to propose is that the image should represent dimensions because aspect ratio can be calculated from them.