# com.kosora623.pikkles.sticker

> ステッカー本体。切り抜き済みの透過PNG。

- Kind: record
- Record key: tid
- Authority: pikkles.kosora623.com
- Lexicon: 1
- Published by [kosora623.bsky.social](https://lexicon.garden/identity/did:plc:mi67np3wgmwyjtqmgy3l5y2m), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mi67np3wgmwyjtqmgy3l5y2m/com.kosora623.pikkles.sticker)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mi67np3wgmwyjtqmgy3l5y2m/com.kosora623.pikkles.sticker/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mi67np3wgmwyjtqmgy3l5y2m/com.kosora623.pikkles.sticker/analytics)

## Record (`com.kosora623.pikkles.sticker`)

Type: record · key tid

### Properties

- `caption` (string): ピクルス名（任意）。以前は一言として使っていた
  - Constraints: maxLength: 1000, maxGraphemes: 100
- `createdAt` (string · datetime, required): 撮影日時（イラストは保存日時）
- `height` (integer, required): 画像の高さ（px）
  - Constraints: minimum: 1
- `image` (blob, required): 切り抜き済み透過PNG。EXIF などのメタデータを残さず再エンコードする。1MB に収めるため /cutout で長辺を1024pxに縮めてある前提。
  - Constraints: maxSize: 1000000, accept: image/png
- `source` (string, required): 撮った写真か、描いたイラストか
  - Constraints: knownValues: photo | illustration
- `width` (integer, required): 画像の幅（px）
  - Constraints: minimum: 1

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "ステッカー本体。切り抜き済みの透過PNG。",
      "key": "tid",
      "record": {
        "properties": {
          "caption": {
            "description": "ピクルス名（任意）。以前は一言として使っていた",
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "createdAt": {
            "description": "撮影日時（イラストは保存日時）",
            "format": "datetime",
            "type": "string"
          },
          "height": {
            "description": "画像の高さ（px）",
            "minimum": 1,
            "type": "integer"
          },
          "image": {
            "accept": [
              "image/png"
            ],
            "description": "切り抜き済み透過PNG。EXIF などのメタデータを残さず再エンコードする。1MB に収めるため /cutout で長辺を1024pxに縮めてある前提。",
            "maxSize": 1000000,
            "type": "blob"
          },
          "source": {
            "description": "撮った写真か、描いたイラストか",
            "knownValues": [
              "photo",
              "illustration"
            ],
            "type": "string"
          },
          "width": {
            "description": "画像の幅（px）",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "image",
          "width",
          "height",
          "source",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.kosora623.pikkles.sticker",
  "lexicon": 1
}
```
