NATION

PASSWORD

SVG nation flags

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
Doniport
Political Columnist
 
Posts: 4
Founded: Oct 02, 2021
Left-wing Utopia

Postby Doniport » Thu Oct 14, 2021 8:14 pm

Hey, uh... unrelated to anything, but, Violet, how do you have an account, but, not a nation?

User avatar
Weed
Diplomat
 
Posts: 878
Founded: Oct 23, 2011
Anarchy

Postby Weed » Thu Oct 14, 2021 8:50 pm

Very minor whine, but when we revamped the flags last time the default flag's red went from a very bright aggressive red to a much cooler red. Now it seems to me the default flag is very hard on the eyes again. Just curious if we could tone that red down a bit since we all have to see it so much.

<3
I prefer not to be called that
Ex-Defender
Former WASC Author
----V----
Weed
LIVE FREE

User avatar
[violet]
Site Admin
 
Posts: 15365
Founded: Antiquity

Postby [violet] » Thu Oct 14, 2021 10:58 pm

Diarcesia wrote:Although theoretically, if we somehow convert the NS ripple PNG to an SVG overlay, would the feature be possible?

It might be possible, but a lot of trickery would be required. The ripple image is also very un-SVG-like and will not convert well.

User avatar
[violet]
Site Admin
 
Posts: 15365
Founded: Antiquity

Postby [violet] » Thu Oct 14, 2021 11:08 pm

Weed wrote:Very minor whine, but when we revamped the flags last time the default flag's red went from a very bright aggressive red to a much cooler red. Now it seems to me the default flag is very hard on the eyes again. Just curious if we could tone that red down a bit since we all have to see it so much.

<3

I think last time the flags got smooshed into the limited RGB colorspace (16-235), mostly by accident, whereas now they're back in full RGB (0-255). National flags have a very particular set of colors, so I do think they should be objectively correct, as opposed to artistically muted. But I believe you can usually configure colorspace in your monitor, operating system, and/or browser, so if in general you find colors too strong, you can change a setting. On my system, for example, default Firefox operates in limited RGB colorspace while Chrome displays full RGB.

User avatar
Random Country 453632
Spokesperson
 
Posts: 199
Founded: Jun 09, 2020
Inoffensive Centrist Democracy

Postby Random Country 453632 » Thu Oct 14, 2021 11:28 pm

Greatest thing that has happened to NS! Also, I'm not at all getting big flags on the rank page, wdym
the mods srsly hate my signature

User avatar
Tinhampton
Powerbroker
 
Posts: 9404
Founded: Oct 05, 2016
Anarchy

Postby Tinhampton » Fri Oct 15, 2021 4:27 am

Why are the colours of Default.svg not identical to the colours of Default.png? Or is this to do with what [v] said about the colour range desmooshing?
Last edited by Tinhampton on Fri Oct 15, 2021 4:31 am, edited 1 time in total.
The Self-Administrative City of TINHAMPTON (pop. 319,372): Saffron Howard, Mayor (UCP); Alexander Smith, WA Delegate-Ambassador

Authorships & co-authorships: SC#250, SC#251, Issue #1115, SC#267, GA#484, GA#491, GA#533, GA#540, GA#549, SC#356, GA#559, GA#562, GA#567, GA#578, SC#374, GA#582, SC#375
Other achievements: Cup of Harmony 73 champions; Philosopher-Queen of Sophia; possibly very controversial; "Tinhampton? the man's literally god"
Who am I, really? 46yo Tory woman w/Asperger's; Cambridge graduate; currently reading National Populism by Roger Eatwell and Matthew Goodwin

User avatar
Betelgeuse Alliance
Attaché
 
Posts: 84
Founded: Oct 19, 2018
Anarchy

Postby Betelgeuse Alliance » Fri Oct 15, 2021 4:50 am

[violet] wrote:SVG post-compression filesize limit has been raised from 12KB to 60KB.

I also confirmed that they're served over the network with gzip / brotli compression, when your browser supports it, so in terms of network bandwidth they arrive at somewhere around 30% of this size. So that's pretty great.

Thank you SO much! :clap: <---genuine applause by the way, this is not a sarcastic one at all despite it looking like that for me!
Just made the proper shift to SVG, and my flag is looking so crisp now! I especially like how the segmented circle that has those slanted bits came out, that part used to be from a separate PNG, but I found a way to remake it in the program I used to make this flag. :lol:
A neutral intergalactic alliance aiming to protect its own peace and liberty, NOT an empire!

I only use NS Stats very loosely - I mainly use factbooks - TG's welcome

_______________''United to protect our peace and liberty!''_______________
SapplyValues Compass:
Link to my results page

For and Against (note that these are just my own opinions, I'm not hostile towards other's views):
FOR: Georgism, UBI, Libertarianism, Free-Market Capitalism, Environmentalism, Guaranteed Healthcare & Education, LGBT+ Equal Rights, Free Speech, Local Democracy, Advancement, Diplomacy
AGAINST: Socialism, Communism, Cronyism, Crony Capitalism, Political Correctness, Radical Feminism, Excessive Government Interference, Authoritarian Left & Right, Corruption

User avatar
Svoin Ver Gyre
Civilian
 
Posts: 1
Founded: Oct 15, 2021
Psychotic Dictatorship

Postby Svoin Ver Gyre » Fri Oct 15, 2021 6:42 am

New puppet here with SVG, pretty neat! Have not noticed any bugs whatsoever!

See what I did with the name

User avatar
Diarcesia
Senator
 
Posts: 4634
Founded: Aug 21, 2016
Scandinavian Liberal Paradise

Postby Diarcesia » Fri Oct 15, 2021 9:28 am

[violet] wrote:
Diarcesia wrote:Although theoretically, if we somehow convert the NS ripple PNG to an SVG overlay, would the feature be possible?

It might be possible, but a lot of trickery would be required. The ripple image is also very un-SVG-like and will not convert well.

I'm willing to take a stab at converting the ripple PNG. Is there a place where I can get it?
Factbooks | Economic Liaison | Maintenance
Between Palestine and Israel, Israel is right (check the links)
Salute like a Diarcesian

User avatar
Dabarastan
Spokesperson
 
Posts: 174
Founded: Jul 29, 2019
Tyranny by Majority

Postby Dabarastan » Fri Oct 15, 2021 6:59 pm

Nice update. This'll be good for season 3 of cards - nations with default flags won't have blurry and pixelated art anymore. And I'm liking the sharp look of my own flag now that I've reuploaded it in svg.

User avatar
Minoa
Senator
 
Posts: 4925
Founded: Oct 05, 2011
Civil Rights Lovefest

Postby Minoa » Sat Oct 16, 2021 12:36 pm

Hello, restored nations that previously had a custom flag continue to fallback to the original JPEG version.

Source: https://www.nationstates.net/nation=notepad

Also, in the preset flags menu, Swaziland is now called Eswatini.
Mme A. d'Oiseau, B.A. (State of Minoa)

User avatar
Tinhampton
Powerbroker
 
Posts: 9404
Founded: Oct 05, 2016
Anarchy

Postby Tinhampton » Sat Oct 16, 2021 12:39 pm

Minoa wrote:Also, in the preset flags menu, Swaziland is now called Eswatini.

...and the Afghanistani flag hasn't been updated. Unless, of course, the admins do not recognise their new government.
The Self-Administrative City of TINHAMPTON (pop. 319,372): Saffron Howard, Mayor (UCP); Alexander Smith, WA Delegate-Ambassador

Authorships & co-authorships: SC#250, SC#251, Issue #1115, SC#267, GA#484, GA#491, GA#533, GA#540, GA#549, SC#356, GA#559, GA#562, GA#567, GA#578, SC#374, GA#582, SC#375
Other achievements: Cup of Harmony 73 champions; Philosopher-Queen of Sophia; possibly very controversial; "Tinhampton? the man's literally god"
Who am I, really? 46yo Tory woman w/Asperger's; Cambridge graduate; currently reading National Populism by Roger Eatwell and Matthew Goodwin

User avatar
Vylixan
Spokesperson
 
Posts: 131
Founded: Mar 19, 2006
Corrupt Dictatorship

Postby Vylixan » Sat Oct 16, 2021 1:14 pm

I love it, particular for my Vexillology project!
Thanks for all the hard work on this!

User avatar
Anatoliyanskiy
Diplomat
 
Posts: 533
Founded: Jan 19, 2020
Liberal Democratic Socialists

Postby Anatoliyanskiy » Sat Oct 16, 2021 1:22 pm

Not sure if this is the right thread for this (please tell me if its not) but I noticed that in the formatting got distorted in my puppets factbook for Anatoliyanskiyan Colony 33, just around the time of this change. It appears that the 33 is not underlined when you hover over it, and that may be causing this issue, but im not sure. The flag also appears to be smaller than the other flag sizes, but that could be normal. Just thought it could be something related to the switch to SVGs.

Some links:
https://www.nationstates.net/nation=ana ... _colony_33
https://www.nationstates.net/nation=ana ... id=1391472 (located under main canon spoiler)
Pro: Environmentalism, Eco-Socialism, Democratic Socialism, Social Democracy,Progressivism, Pro-choice, Pro-LGTBQ+ rights, Immigration, Bernie Sanders,Secularism, Palestine And Israel, Internationalism, Alter-Globalization.
Anti: Conservatism, Traditionalism, Bigotry, TERF movement, Fascism, Stalinism, Totalitarianism, Laissez-faire capitalism, Libertarianism, Bolsonaro, Religious Fundamentalism, Nationalism
We mostly use NS stats. No I don't accept Telegrams.
I'm a Eco-Libertarian Democratic Socialist, or ELDS for short.
Forums that I've posted: viewtopic.php?f=20&t=487988 (dead but useful for info)
Ive been on this site for 1 year. I don't know if this is an accomplishment or just sad.

User avatar
Umbratellus
Spokesperson
 
Posts: 137
Founded: Aug 22, 2021
New York Times Democracy

Postby Umbratellus » Sat Oct 16, 2021 1:35 pm

So, I'll be frank I've never used svg image before; I mostly stick to .pngs and the occassional .dds image. How long should it take to upload one? I tried converting my current .png to an .svg but it keeps showing a swirling loading icon after I hit the upload button. It shows up fine in the preview though. Is that just because of the way the converter I used edited the code or something? I'm honestly not sure if I should just switch back to the .png or just wait a little longer.
Last edited by Umbratellus on Sat Oct 16, 2021 1:36 pm, edited 1 time in total.

User avatar
Vylixan
Spokesperson
 
Posts: 131
Founded: Mar 19, 2006
Corrupt Dictatorship

Postby Vylixan » Sat Oct 16, 2021 2:55 pm

I have a request. Can the ex-nation flag also be changed to a quality SVG image?
It's now this tiny tiny PNG image with blurry text when it's used on a card: https://www.nationstates.net/images/car ... nation.png
Last edited by Vylixan on Sat Oct 16, 2021 2:55 pm, edited 1 time in total.

User avatar
Minoa
Senator
 
Posts: 4925
Founded: Oct 05, 2011
Civil Rights Lovefest

Postby Minoa » Sat Oct 16, 2021 4:08 pm

Vylixan wrote:I have a request. Can the ex-nation flag also be changed to a quality SVG image?
It's now this tiny tiny PNG image with blurry text when it's used on a card: https://www.nationstates.net/images/car ... nation.png

NSindex has an SVG version of the Ex-Nation flag: https://nsindex.net/wiki/File:Ex-Nation_Flag.svg
Mme A. d'Oiseau, B.A. (State of Minoa)

User avatar
[violet]
Site Admin
 
Posts: 15365
Founded: Antiquity

Postby [violet] » Thu Oct 21, 2021 11:53 pm

Minoa wrote:
Vylixan wrote:I have a request. Can the ex-nation flag also be changed to a quality SVG image?
It's now this tiny tiny PNG image with blurry text when it's used on a card: https://www.nationstates.net/images/car ... nation.png

NSindex has an SVG version of the Ex-Nation flag: https://nsindex.net/wiki/File:Ex-Nation_Flag.svg

Ah, that's awesome. Do we have permission to use it?

User avatar
[violet]
Site Admin
 
Posts: 15365
Founded: Antiquity

Postby [violet] » Fri Oct 22, 2021 12:01 am

Anatoliyanskiy wrote:Not sure if this is the right thread for this (please tell me if its not) but I noticed that in the formatting got distorted in my puppets factbook for Anatoliyanskiyan Colony 33, just around the time of this change. It appears that the 33 is not underlined when you hover over it,

Are you referring to the way the underline doesn't pass through descenders, like this? ? Browsers have been generally migrating to this style over the years.

Anatoliyanskiy wrote:The flag also appears to be smaller than the other flag sizes, but that could be normal.

This does seem to be a formatting bug, as the flags are permitted to be very wide if they're not tall.

User avatar
[violet]
Site Admin
 
Posts: 15365
Founded: Antiquity

Postby [violet] » Fri Oct 22, 2021 12:16 am

Minoa wrote:Hello, restored nations that previously had a custom flag continue to fallback to the original JPEG version.

Fixed for new refoundings, thanks.

User avatar
Sulivannia
Bureaucrat
 
Posts: 44
Founded: Apr 20, 2020
Left-Leaning College State

Postby Sulivannia » Fri Oct 22, 2021 12:46 am

Nice and excellent stuff! I've kind of waited for this in a while but wasn't sure when, and wish I knew this slightly earlier but it's nice to know!

Since I have the .svg in my overview factbook, I've used that as my flag. It works wonders so far, and many thanks for this.
The Federated United States of Sulivannia'Suli''United We Stand'Est. 21/8/1821
PM Grant Moulder|A modern, democratic nation of 212 million citizens in Feldare
 SBN|Tues, 7/12/2021, W 50|NEWS |Warm spell for E Suli seaboard and Tremond Valley, 2-8° above ave., highest of 24°|Referenda results for 32-state plan conclude releasing|Autumn colour change at 100% of Suli, peak colour at 95%|WEATHER |Glendale 22°/10° CLEAR|Carson 10°/1° CLEAR|Ambrosia 22°/16° L RAIN|Clayton 19°/11° L RAIN|Caleira 24°/20° L RAIN|Tremond 20°/10° P CLOUDY|Thomasburg 22°/16° H RAIN|Yorke 21°/14° M CLOUDY|Exeter 20°/13° P CLOUDY|Wilmington 7°/5° P CLOUDY|Carronell 24°/20° M CLOUDY 

User avatar
Minoa
Senator
 
Posts: 4925
Founded: Oct 05, 2011
Civil Rights Lovefest

Postby Minoa » Fri Oct 22, 2021 12:48 am

[violet] wrote:
Minoa wrote:NSindex has an SVG version of the Ex-Nation flag: https://nsindex.net/wiki/File:Ex-Nation_Flag.svg

Ah, that's awesome. Do we have permission to use it?

You may use the flag, since it is a mere vectorisation of an existing NationStates design.

-- Minoa

EDIT: I just revised the flag to shave off another kilobyte off the file size. Apologies for the inconvenience.
Last edited by Minoa on Fri Oct 22, 2021 1:44 am, edited 2 times in total.
Mme A. d'Oiseau, B.A. (State of Minoa)

User avatar
Raccoon Creek
Lobbyist
 
Posts: 22
Founded: Mar 06, 2019
New York Times Democracy

Postby Raccoon Creek » Sun Oct 24, 2021 5:32 am

Since I have begun using an .svg file for my national flag, I have noticed that the search suggestions when logging into the website and on the 'World' page only display my nation's name and no longer my nation's name plus the national flag. Below is an image of what I am mentioning.

https://i.imgur.com/vMPZ58v.png

User avatar
Ispravlennaja Tsekovija
Diplomat
 
Posts: 526
Founded: Oct 21, 2021
Ex-Nation

Postby Ispravlennaja Tsekovija » Mon Oct 25, 2021 7:06 am

Umbratellus wrote:So, I'll be frank I've never used svg image before; I mostly stick to .pngs and the occassional .dds image. How long should it take to upload one? I tried converting my current .png to an .svg but it keeps showing a swirling loading icon after I hit the upload button. It shows up fine in the preview though. Is that just because of the way the converter I used edited the code or something? I'm honestly not sure if I should just switch back to the .png or just wait a little longer.

raster images can't be converted automatically to proper vector images. automated tools will either just embed the png and fundamentally change nothing or create enormous sets of multiple traces. you need to actually trace or otherwise recreate the raster image in svg format if you want a small file.
Last edited by Ispravlennaja Tsekovija on Mon Oct 25, 2021 7:06 am, edited 1 time in total.
""nsg is dumb" —barack obama" —plato

User avatar
Umbratellus
Spokesperson
 
Posts: 137
Founded: Aug 22, 2021
New York Times Democracy

Postby Umbratellus » Mon Oct 25, 2021 7:27 am

Ispravlennaja Tsekovija wrote:
Umbratellus wrote:So, I'll be frank I've never used svg image before; I mostly stick to .pngs and the occassional .dds image. How long should it take to upload one? I tried converting my current .png to an .svg but it keeps showing a swirling loading icon after I hit the upload button. It shows up fine in the preview though. Is that just because of the way the converter I used edited the code or something? I'm honestly not sure if I should just switch back to the .png or just wait a little longer.

raster images can't be converted automatically to proper vector images. automated tools will either just embed the png and fundamentally change nothing or create enormous sets of multiple traces. you need to actually trace or otherwise recreate the raster image in svg format if you want a small file.

Gotcha, thanks for the heads up. I was not aware of that.

PreviousNext

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads