Add Image Dimensions to the Image Endpoints

Hello,

This is an example object that is returned when I want to fetch someone’s assets.

{
    "id":"08d7c793-2d05-4677-81c9-3879b55de30d",
    "name":"appfalse.png",
    "description":null,
    "owner": {
        "id":"e6238438-0642-4a7d-b769-d7d0f3d601aa",
        "username":"edwxrddd"
    },
    "createdAt":"2020-03-13T21:12:02.56439",
    "updatedAt":"0001-01-01T00:00:00",
    "active":true,
    "locator":"tevid:08d7c793-2d05-4677-81c9-3879b55de30d",
    "type":"Image"
}

When you want to load this asset into an ImageBox, you can not know the dimensions of the image. I think it would be nice if there was a dimensions objects so that this image doesn’t look like

when it is loaded in. As you can see, it is stretched and unappealing.

This could be an example of what the object would look like with the dimensions provided.

{
    "id":"08d7c793-2d05-4677-81c9-3879b55de30d",
    "name":"appfalse.png",
    "description":null,
    "owner": {
        "id":"e6238438-0642-4a7d-b769-d7d0f3d601aa",
        "username":"edwxrddd"
    },
    "dimensions":{
        "x":"200px",
        "y":"190px"
    },
    "createdAt":"2020-03-13T21:12:02.56439",
    "updatedAt":"0001-01-01T00:00:00",
    "active":true,
    "locator":"tevid:08d7c793-2d05-4677-81c9-3879b55de30d",
    "type":"Image"
}

Thank you :slight_smile:

To make this a little easier to read:

To add on, possibly we can add a “search by dimensions” filter in the library.

1 Like