Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Support Image Preview #13

Open
malkoG opened this issue Dec 15, 2022 · 0 comments
Open

[Feature] Support Image Preview #13

malkoG opened this issue Dec 15, 2022 · 0 comments

Comments

@malkoG
Copy link
Collaborator

malkoG commented Dec 15, 2022

inspired by https://github.com/renerocksai/telekasten.nvim

Through using catimg, we possibly can implement previewing attachment images

See : https://github.com/posva/catimg

{
  "favourited": false,
  "media_attachments": [
    {
      "description": null,
      "id": "109518745017682603",
      "preview_remote_url": null,
      "url": "https://bucket.qdon.space/media_attachments/files/109/518/745/017/682/603/original/2f77bdefa49a4085.jpeg",
      "preview_url": "https://bucket.qdon.space/media_attachments/files/109/518/745/017/682/603/small/2f77bdefa49a4085.webp",
      "text_url": null,
      "blurhash": "UFK07-|nWA^H-5RPXooI9GNyxCEN#kEmRPkC",
      "type": "image",
      "meta": {
        "original": {
          "aspect": 1.333601,
          "width": 1663,
          "height": 1247,
          "size": "1663x1247"
        },
        "small": {
          "aspect": 1.33494,
          "width": 554,
          "height": 415,
          "size": "554x415"
        }
      },
      "remote_url": null
    },
    {
      "description": null,
      "id": "109518745010881716",
      "preview_remote_url": null,
      "url": "https://bucket.qdon.space/media_attachments/files/109/518/745/010/881/716/original/46ded526cc5c5295.jpeg",
      "preview_url": "https://bucket.qdon.space/media_attachments/files/109/518/745/010/881/716/small/46ded526cc5c5295.webp",
      "text_url": null,
      "blurhash": "U9JZ@]:jHrDhH?axyWpyD4GHtlr]_N59s=R4",
      "type": "image",
      "meta": {
        "original": {
          "aspect": 1.333601,
          "width": 1663,
          "height": 1247,
          "size": "1663x1247"
        },
        "small": {
          "aspect": 1.33494,
          "width": 554,
          "height": 415,
          "size": "554x415"
        }
      },
      "remote_url": null
    },
    {
      "description": null,
      "id": "109518745015693092",
      "preview_remote_url": null,
      "url": "https://bucket.qdon.space/media_attachments/files/109/518/745/015/693/092/original/6ab66de2b6e82e13.jpeg",
      "preview_url": "https://bucket.qdon.space/media_attachments/files/109/518/745/015/693/092/small/6ab66de2b6e82e13.webp",
      "text_url": null,
      "blurhash": "UOK0f;}=iaXS=_Rjt7S$+[E2xukD?ak8Mx%1",
      "type": "image",
      "meta": {
        "original": {
          "aspect": 1.333601,
          "width": 1663,
          "height": 1247,
          "size": "1663x1247"
        },
        "small": {
          "aspect": 1.33494,
          "width": 554,
          "height": 415,
          "size": "554x415"
        }
      },
      "remote_url": null
    }
  ],
  "local_only": false,
  "tags": [],
  "favourites_count": 0,
  "card": null,
  "poll": null,
  "uri": "https://qdon.space/users/horse_sensei/statuses/109518745323394731",
  "id": "109518745323394731",
  "url": "https://qdon.space/@horse_sensei/109518745323394731",
  "account": {
    "locked": false,
    "acct": "horse_sensei",
    "username": "horse_sensei",
    "group": false,
    "avatar_static": "https://bucket.qdon.space/accounts/avatars/109/262/869/417/892/453/original/02d5227346aff0f1.png",
    "url": "https://qdon.space/@horse_sensei",
    "statuses_count": 665,
    "created_at": "2022-10-31T00:00:00.000Z",
    "following_count": 154,
    "fields": [],
    "noindex": false,
    "id": "109262869417892453",
    "last_status_at": "2022-12-15",
    "bot": false,
    "header": "https://bucket.qdon.space/accounts/headers/109/262/869/417/892/453/original/ea966a75ca40b131.jpg",
    "discoverable": true,
    "avatar": "https://bucket.qdon.space/accounts/avatars/109/262/869/417/892/453/original/02d5227346aff0f1.png",
    "header_static": "https://bucket.qdon.space/accounts/headers/109/262/869/417/892/453/original/ea966a75ca40b131.jpg",
    "emojis": [],
    "followers_count": 124,
    "note": "",
    "display_name": "마선생"
  },
  "reblogged": false,
  "created_at": "2022-12-15T16:57:13.277Z",
  "content": "",
  "in_reply_to_id": null,
  "language": "ko",
  "mentions": [],
  "in_reply_to_account_id": null,
  "visibility": "unlisted",
  "spoiler_text": "",
  "reblog": null,
  "muted": false,
  "sensitive": false,
  "emojis": [],
  "application": {
    "name": "Web",
    "website": null
  },
  "edited_at": null,
  "pinned": false,
  "bookmarked": true,
  "replies_count": 0,
  "reblogs_count": 0,
  "filtered": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant