Skip to content

SL: read_gyazo verb — fetch a shared image from a Gyazo link #301

Description

@JDHayesBC

From the deck, 2026-08-25. Gyazo is the de-facto way images are shared in SL.

Idea

A read_gyazo(url) verb in sl.py: take a Gyazo URL → strip to the ID → fetch https://i.gyazo.com/{id}.jpg (or .png) directly → save locally and return the path so it can be viewed.

Gotcha (proven live 2026-08-25)

The https://gyazo.com/{id} page URL is HTML — feeding it to image handling throws 400 "Could not process image" (both Lyra and Caia hit this). You MUST hit the i.gyazo.com/{id}.<ext> direct image. Verb should do the strip+direct-fetch and try .jpg then .png.

Acceptance

  • read_gyazo("https://gyazo.com/<id>") → downloads the raw image, returns a local path.
  • Handles both page-URL and already-direct forms; falls back .jpg→.png.
  • Foundation for the auto-prefetch issue (perception intercepts links).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions