Skip to content

perf: right-size README tiles, social cards and in-app images #5251

Closed

Description

@tale-code-bot

Part 3 of #4686. Triage split that issue in three; TALE-112 works part 1, the responsive delivery of the docs images.

Summary

After part 1, the docs screenshots and the marketing images share one width ladder, format policy, byte budget and encoder. The other images Tale ships are still made one at a time:

  • README tiles. The gallery and tour tiles are straight downscales of the docs shots (bun run readme:assets, services/platform/tests/docs-screenshots/readme-assets.ts, output .github/assets/readme-*.webp).
  • Social cards. docs, ui-docs and web each ship one public/og.png; packages/ui/src/seo/document-meta.ts writes the tags.
  • Video posters. The 30 posters under services/docs/public/videos/ are one WebP each.
  • In-app images. Chat attachments, the document preview and the branding logos get no thumbnails today.

Proposed change

  • Produce the README tiles, the social cards (for example 1200×630) and the video posters with the shared pipeline of part 1, not by hand or by a separate script.
  • Audit the in-app images: what each one loads and at what size. Record what you find, and fix or file each oversized image.

Acceptance criteria

  • The README tiles, the social cards and the video posters come out of the shared encoder and policy, and a test enforces their budget.
  • The social tags of docs, ui-docs and web point at cards of the documented size.
  • The in-app audit lists each image, what it loads and its size. Each oversized image is fixed or filed as an issue of its own.

Activity

  1. added
    perf
    agent-ready
    on Nov 1, 2026
  2. tale-code-bot commented on Nov 2, 2026

    @tale-code-bot
    CollaboratorAuthor

    In-app image audit (TALE-331, part 3 of #4686)

    Checked at tale-project/tale 24a091dddf6d1d7f81aaaa214cd0523806d8c049 (feature-train), all paths under services/platform/. The platform has no thumbnail, variant or srcset anywhere today: every uploaded image is served as its original through a presigned object-store URL (getFileUrl, backend/domains/files/service.ts, 15-minute links). "Oversized" means wider than twice the CSS size it is shown at (DPR 2).

    Image Shown at What it loads Verdict
    Chat composer attachment tile (app/features/chat/components/composer-attachments.tsx:85-89) 36×36 The original upload. The client recompresses only files above 1 MB, to at most 2048 px (lib/utils/compress-image.ts:7-12). Oversized, up to ~28× the width → #5298
    Message attachment tile (app/features/chat/components/message-parts.tsx:219-223) 36×36 The original upload Oversized → #5298
    Task and file attachment tile (app/features/shared/files/file-displays.tsx:206-210) 36×36 The original upload Oversized → #5298
    Generated images and artifacts in a message (app/features/chat/components/message-artifacts.tsx) at most 256 px The generated original, 1024×1024 or 1536×1024 Mildly oversized (2-3×) → #5298
    Branding logo (app/components/logo/tale-logo.tsx:11-18) 20×20 The raw upload, up to 2 MB, no dimension limit (backend/domains/branding/service.ts:89), served no-cache, must-revalidate (server.ts:1003-1025), also in the pre-auth shell Oversized, up to ~50× → #5299
    Branding favicon (backend/domains/branding/service.ts) favicon sizes The raw upload Oversized → #5299
    Product image in the list and its hover card (app/features/products/components/product-image.tsx:31-55) 80×80 and 128×128 The original, up to 5 MB (lib/shared/product-images.ts:4), served private, no-store (backend/domains/products/routes.ts) Oversized → #5300
    Document preview of an image file (app/features/documents/components/document-preview-image.tsx:62-70) ~790 px pane, zoom up to 5× The original Oversized at rest (~2.5× at DPR 2); the original is needed only when zoomed → #5301
    Image lightbox and markdown image preview (app/features/shared/markdown/image-preview-dialog.tsx:88) full size, zoomable The original Right-sized: the lightbox exists to show the original
    Images inside markdown, DOCX and email bodies (app/features/shared/markdown/markdown-renderer.tsx:104) content width Remote images through the image proxy (max-age=3600, up to 10 MB) Not determinable without the content: their sizes belong to whoever wrote the message; not filed
    Assignee avatars (app/features/tasks/components/assignee-avatar.tsx), vendor icons, the platform's own logos (/assets/logo-*.svg) 16-36 px Small files or SVG Fine

    Also noted, not filed: the shared <Image> primitive loads lazily but sets no decoding attribute; sharp is only a platform devDependency today, so a server-side variant (#5298, #5299, #5300) moves it to dependencies (it is already in the lock files).

    Not checked: the ETag behaviour of Bun's static responses, the Cache-Control the object store sends, and the sizes of images sandbox runs produce.

  3. tale-code-bot commented on Nov 2, 2026

    @tale-code-bot
    CollaboratorAuthor

    Landed on release/0.6, the 0.6 feature line, with feature train #5329 as 54cc39c (perf(ui): size readme tiles, video posters and the social card); it ships with Tale 0.6.0. GitHub closes issues only for commits on main, so the feature-train role closes this one. Board task: TALE-331.

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

    agent-readyperf

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions