Link parameter for picking an image to preview in embed
reth
started a topic
over 1 year ago
Sometimes you just want to share a post that has several images, but you want people to see specifically *some* image in the embed. Unfortunately, embeds always display the first image.
This could be solved via something like an optional `?img=0` parameter, which tells the embed resolver, starting index from 0, to preview a specific image.
Say, I'd want to show a second image on a post, i'd do `https://cohost.org/user/1234-cool-post?img=1`, and it'd preview the second image in the thumbnail. As a fallback, you could just preview the first image as always.
reth
Sometimes you just want to share a post that has several images, but you want people to see specifically *some* image in the embed. Unfortunately, embeds always display the first image.
This could be solved via something like an optional `?img=0` parameter, which tells the embed resolver, starting index from 0, to preview a specific image.
Say, I'd want to show a second image on a post, i'd do `https://cohost.org/user/1234-cool-post?img=1`, and it'd preview the second image in the thumbnail. As a fallback, you could just preview the first image as always.
2 people like this idea