Skip to content

kernel: MediaProcessor adapter — Pillow for image validation/dimensions/thumbnails #16

Description

@JArmandoAnaya

Context

First concrete implementation of the MediaProcessor port for still images.

Deliverables

  • Validate + decode JPEG/PNG (extend the accepted list deliberately, document it);
    corrupt/unsupported files produce structured per-file errors, never swallowed
    (v1 exporter lesson).
  • Extract width/height/format; EXIF orientation handled (dimensions reported
    post-orientation; document the policy).
  • Thumbnail generation (max edge configurable, default 256px) returned as bytes for the
    blob store.

Acceptance criteria

  • Corrupt file test yields a structured error including the filename
  • EXIF-rotated fixture reports oriented dimensions
  • Thumbnails deterministic enough for content addressing (fixed encoder params)

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

    kernelvisionset.kernel — domain, ports, adapters, servicesm2M2 — Ingest and assets (0.0.1-alpha.2)

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions