Personas carry images again

Personas carry images again

Product 3 min read Haught Studio personasimagesfeatures

A persona listing can offer hero, icon and gallery images, stored as objects and pointed at by a real foreign key.

A persona is a character, and a character has a face. A persona listing can now carry images again: a hero image for the top of the page, an icon for lists and cards, and a gallery of extra pictures.

The three slots

SlotWhere it showsNotes
HeroThe top of the persona's pageThe one large picture
IconCards, rows and search resultsSmall and square, seen everywhere
GalleryBelow the descriptionAny number of extra images

Why the file cannot carry them

A .hspersona file carries the persona — its name, voice and instructions — and no data files. That is deliberate, and it is why images cannot travel inside an export: the listing has to offer them separately.

Downloadable on their own

Because the images live beside the listing rather than inside the file, each one can be viewed or downloaded on its own — no export needed.

Stored as objects, referenced by a key

The images are objects in a bucket, not rows full of bytes, so the database holds only the pointer. That pointer is a real foreign key with ON DELETE CASCADE, which means removing a listing cannot strand an image behind it.