# is.currents.content.defs

> Published by [currents.is](https://lexicon.garden/identity/did:plc:jaur46k6ijyfvl4lojza7eic)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:jaur46k6ijyfvl4lojza7eic/is.currents.content.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:jaur46k6ijyfvl4lojza7eic/is.currents.content.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:jaur46k6ijyfvl4lojza7eic/is.currents.content.defs/examples)

## Definitions

### `is.currents.content.defs#imageView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `width` | `integer` | No | Width of the image in pixels. Absent if unknown. |
| `height` | `integer` | No | Height of the image in pixels. Absent if unknown. |
| `blobCid` | `string` (cid) | Yes | CID of the saved image blob. |
| `imageUrl` | `string` (uri) | Yes | CDN URL of the image, resolved server-side from the blob reference. |
| `attribution` | `ref` → `#attribution` | No |  |
| `dominantColor` | `string` | No | Hex color code of the most dominant color, for placeholder rendering. Absent if unknown. |

### `is.currents.content.defs#attribution`

**Type**: `object`

Optional provenance metadata for an image content item.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `url` | `string` (uri) | No |  |
| `credit` | `string` | No |  |
| `license` | `string` | No |  |

## Raw Schema

```json
{
  "id": "is.currents.content.defs",
  "defs": {
    "imageView": {
      "type": "object",
      "required": [
        "blobCid",
        "imageUrl"
      ],
      "properties": {
        "width": {
          "type": "integer",
          "description": "Width of the image in pixels. Absent if unknown."
        },
        "height": {
          "type": "integer",
          "description": "Height of the image in pixels. Absent if unknown."
        },
        "blobCid": {
          "type": "string",
          "format": "cid",
          "description": "CID of the saved image blob."
        },
        "imageUrl": {
          "type": "string",
          "format": "uri",
          "description": "CDN URL of the image, resolved server-side from the blob reference."
        },
        "attribution": {
          "ref": "#attribution",
          "type": "ref"
        },
        "dominantColor": {
          "type": "string",
          "description": "Hex color code of the most dominant color, for placeholder rendering. Absent if unknown."
        }
      }
    },
    "attribution": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "maxLength": 2000
        },
        "credit": {
          "type": "string",
          "maxLength": 500
        },
        "license": {
          "type": "string",
          "maxLength": 500
        }
      },
      "description": "Optional provenance metadata for an image content item."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
