gitfut icon indicating copy to clipboard operation
gitfut copied to clipboard

Missing the ability to change the size of the image when putting on markdown

Open SnowDingo opened this issue 5 months ago • 3 comments

What's the idea

Currently the API works fine. However, I personally think adding an option to adjust the image size to be put on markdown would be a nice feature as my readme currently looks like this:

Image

I would love to see three different size variants so people can use it not just on their profile readme but on other places as well.

How it might work

The API could have a parameter size that is default set to medium that can alter the size of the image if a specific one of the size option is given from the url.

Alternatives

Other alternative could be to let user download in different sizes? But I would say the API URL approach would make things easier for users like me.

SnowDingo avatar Jul 05 '26 05:07 SnowDingo

This looks like it's already resolved on master (commit c4d162e) — gitfut.com/.png?w=300 works via clampWidth() in route.tsx.

ChristianUtria avatar Jul 06 '26 07:07 ChristianUtria

Hello @SnowDingo the size of the image is already configurable using the tag when embedding it, just do <img src="https://gitfut.com/torvalds.png" width="240">

Younesfdj avatar Jul 10 '26 23:07 Younesfdj

@ChristianUtria the path gitfut.com/.png only takes country as param gitfut.com/.png?w=300 won't work

Younesfdj avatar Jul 10 '26 23:07 Younesfdj