CaramelFur / Picsur

An easy to use, selfhostable image sharing service like Imgur with built in converting
https://picsur.org/
GNU Affero General Public License v3.0
802 stars 42 forks source link

[feature request] different types of links (thumbnail, medium size, ...)? #18

Closed poulpor closed 9 months ago

poulpor commented 1 year ago

I'm a chevereto-free user and discovered your very promising Picsur project a week ago. The only feature I miss is the availability of different types of links, like thumbnails or medium sized (see the picture of my self hosted server). Do you think it might be an interesting feature to add to Picsur? I can give you access to my chevereto server if needed. Thank you and long life to Picsur!

Capture d’écran 2022-09-22 à 12 01 37

CaramelFur commented 1 year ago

Hi there, this already a feature. You can use to customize dialog to create a url for a smaller version. Or you can just manually append ?width=200 to the end of the image url. You can change it to any size you want. And if you dont want it to scale up smaller images, you can make it ?width=200&shrinkonly=true.

poulpor commented 1 year ago

Thank you for those tricks, would you have one to create a link to a clickable thumbnail of the picture?

CaramelFur commented 1 year ago

sorry, what do you mean by that?

poulpor commented 1 year ago

generate a link to a thumbnail version of the picture that once clicked, will display the full size picture (sorry for my bad english)? Useful for forums, when you don't want to post a full picture but a more discrete thumbnail.

CaramelFur commented 1 year ago

Ah like that, that isn't really easily doable, since the server has to somehow differentiate between a request from the forum and a request from a user directly. And from what I know there isn't a reliable method to do this, and would require some pretty big restructorizing on the backend. If the forum allows you to redirect the user to a different url upon clicking the image, it would be more possible, as you could set the click url in the post to the full image. But even then I wouldn't know how to add something like that cleanly to picsur. As adding more and more url copy bars to the image view page will make it more and more cluttered.