Skip to content

feat(api): thumbnails and previews #24

Description

@BryanFRD

A file list without thumbnails is a worse product than a file list with them, and the pipeline is
the part that takes time.

Scope:

  • generate on demand rather than on upload, and cache the result as a derived blob keyed by the
    source digest, so identical files share one thumbnail
  • images first; video needs ffmpeg and is a bigger dependency decision
  • bound the work: refuse absurd dimensions, cap decode memory, and never let a crafted file become a
    decompression bomb that takes the server down

The security bound is the interesting part. Image decoders are a classic remote-code-execution
surface, so this deserves an explicit decision about whether decoding runs in-process at all.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low priority / somedayfeatureNew feature or capability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions