Skip to content

Add backend image validation for uploaded PNG assets #10

@risu729

Description

@risu729

Summary

Backend should validate uploaded PNG assets instead of only accepting base64-looking strings.

Scope

  • Validate that avatar, sticker, and POI picture payloads decode as PNG.
  • Enforce dimensions: avatars/stickers 64x64, POI pictures 128x128.
  • Enforce reasonable byte-size limits before storing inline in Postgres.
  • Validate sticker palette metadata against the fixed app palette.
  • Return clear validation errors before moderation/storage.

Context

Phase 0 stores image payloads as base64 PNG strings. The shared schemas can check shape lightly, but real image decoding and dimension checks belong in the API backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions