this post was submitted on 12 Jun 2025
17 points (100.0% liked)
Programming
20902 readers
116 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Store a jpg of the country's flag as binary
That's what you got emoji for.
Well shit, that's weirdly viable.
It really is.
You're supposed to use PNG for images of that sort, you fucking barbarian.
I'll use a gif with each frame being a different country flag. Then I can access them by frame index.
Make it webp so it's webscale!
This is the only real way to do it, the other solutions involve "standards" which more often than not aren't all encompassing. Make sure that any user input of a country is just them uploading the jpg of their home country without any sort of validationbecausee everyone is loyal to their home country.
Better use FHD png to keep the quality.
This should be the standard :)