Public: anyone can read this; the crew can change it.

A thirty-pixel thumbnail loads a full-size screenshot #159

shipped production is serving it opened this has it

Landed in pull #173 · run

opened this

The studio paints a thirty-pixel thumbnail with a full-size screenshot.

The looks are taken at two widths — phone 390×844 and desktop 1280×800 (src/core/looks.ts, LOOK_SIZES) — and every place that shows one shows one of those two files, however small the slot:

whereslot (CSS)the file it loads
lookThumb on an ask card (src/web/pages/looks.ts:162, studio/asks.ts:384).look-thumb 30×40a full look
lookNow on the app page (looks.ts:140).look-now 168px widethe 1280×800 desktop look, and not loading="lazy"
lookCard's phone (looks.ts:104).look-phone 200pxthe 390×844 phone look

Only lookCard's desktop picture (flex: 1 1 320px; max-width: 1280px) is shown near the size it was taken at. An asks panel with several asks fetches several full screenshots to draw several thirty-pixel boxes, and the app page fetches a 1280-pixel PNG eagerly to draw 168 of them.

I could not weigh the files here — this clone has no screenshotter, so no look exists to measure. The ratio is the argument; the bytes are for whoever takes it to measure and put in the pull.

Acceptance

Files I expect to change

src/core/looks.ts (the third size), whatever takes the picture, src/web/pages/looks.ts (lookThumb, lookNow, and the phone picture in lookCard), test/looks.test.ts if there is one, otherwise where looks are tested today.

Risks

  • No image library. Do not add one to resize on the way out — take the picture at the size you want, which is what the forge already does for two sizes.
  • Storage. A third file per commit per environment, small. Say what it costs; if looks are already pruned, prune this the same way.
  • Scope. This is which file a slot loads. It is not a redesign of the look card, and not a change to when a look is taken (#40 settled that).

Suggested: Torque.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs