Preview credited products in the Marketplace's 4:3 ratio
Context
Creators make their product posters in 4:3, the Second Life Marketplace format. When someone hovers a product under "Show credits", the poster preview comes out stretched or squashed, which makes the creator's product look bad on every post that credits it.
Goal
The credits preview shows product posters in 4:3, the way creators made them.
Screenshots
The requester's screenshot (a 4:3 skin tint poster squashed into a wide, flat hover preview) is on the attached Featurebase post. Linear drops its link, which is signed and expires after an hour.
+++ For the agent
Task
Give the product picture shown in the credits hover tooltip a fixed 4:3 frame instead of letting it follow the texture's own ratio. SL textures are stored at power-of-two sizes (the viewer rescales on upload, so a 1024×768 poster is stored 1024×512), so the texture's ratio is an upload artifact, not the poster's real one. Keep objectFit: 'fill' so the texture is stretched back to 4:3. Feature rather than bug: the preview works as built, the request changes the ratio it uses.
Expected behavior
Hovering a credited product's name shows its picture in a 4:3 box, 200 px high (about 267 px wide), whatever the texture's stored size.
Acceptance criteria
- [ ] The credits tooltip image renders at 4:3 (200 × ~267 px) for any texture size: 1:1, 2:1, 1:2.
- [ ] It applies everywhere
PostProductsrenders: the feedPost,ShowPost(credits forced open) andFullScreenImages. - [ ] Products without a picture still show no tooltip.
Where it lives
assets/features/primfeed/components/post/PostProducts.tsx:PostProducts, theTooltipcontentis aStyledImgofgetPathTexture({ uuid: product.pictureUuid, size: 512 })styledobjectFit: 'fill',height: 200, no width, so its width follows the texture's natural ratio. Give it a 4:3 ratio (aspectRatio: '4 / 3'or an explicit width).src/Controller/AssetsInworldController.php:getTexture()fetches the J2C texture from the Linden asset CDN andthumbnail_image($width)keeps its stored ratio. No change needed there.
Out of scope
- The square post-editor thumbnails (
ProductCatalog,LinkedProducts): they useobjectFit: 'cover', so they crop rather than distort.
The original request is in the comment "Original description, before cleanup".
+++
Log in to comment and vote
No comments yet
Be the first to share your thoughts.