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
Afsharid Persia
Lobbyist
 
Posts: 13
Founded: Dec 04, 2014
Inoffensive Centrist Democracy

Postby Afsharid Persia » Sat Nov 13, 2021 4:17 pm

[violet] wrote:
Afsharid Persia wrote:It looked fine when the file itself was viewed on Chrome, but once it was applied to the nation on NS, it had some weird lines around it, almost like an outline.

Where are you seeing an outline? I uploaded it to Testlandia and it looks correct to me.


Here, I've screenshotted a zoomed in comparison so you can see: https://imgur.com/a/J47POkH

The top screenshot is what it looks like after it is set as my flag on NationStates.

The bottom screenshot is how it looks in the flag preview before submitting changes. This is how it's intended to look.

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

Postby [violet] » Sun Nov 14, 2021 10:33 pm

Afsharid Persia wrote:Here, I've screenshotted a zoomed in comparison so you can see: https://imgur.com/a/J47POkH

The top screenshot is what it looks like after it is set as my flag on NationStates.

The bottom screenshot is how it looks in the flag preview before submitting changes. This is how it's intended to look.

Thanks for the screenie. This is a result of compression. It can be particularly heavy on images that are designed to be small, because it limits the precision of co-ordinates. So if you have a 1000x1000 SVG image where all the co-ordinates are integers, those won't be modified, but if that same image is presented in a 20x20 viewbox with co-ordinates like 10.41259, they will be truncated, and you'll lose precision.

User avatar
Valentine Z
Postmaster-General
 
Posts: 11084
Founded: Nov 08, 2015
Scandinavian Liberal Paradise

Postby Valentine Z » Sun Nov 14, 2021 10:34 pm

[violet] wrote:
Afsharid Persia wrote:Here, I've screenshotted a zoomed in comparison so you can see: https://imgur.com/a/J47POkH

The top screenshot is what it looks like after it is set as my flag on NationStates.

The bottom screenshot is how it looks in the flag preview before submitting changes. This is how it's intended to look.

Thanks for the screenie. This is a result of compression. It can be particularly heavy on images that are designed to be small, because it limits the precision of co-ordinates. So if you have a 1000x1000 SVG image where all the co-ordinates are integers, those won't be modified, but if that same image is presented in a 20x20 viewbox with co-ordinates like 10.41259, they will be truncated, and you'll lose precision.

That would explain why I have some small imperfections here and there when I use SVGs on the site. I have some decimal coordinates. Thanks for the information!
Val's Stuff. ♡ ^_^ ♡ For You


Issues Thread 4th in Gen Sec Photography Stuff Project: Save F7.

The Sixty! Opinions Deposit! Valentian Stories! Gwen's Adventures! Cat Anthem! Valentian News.
If you are reading my sig, I want you to have the best day ever ! You are worth it, do not let anyone get you down !
Glory to De Geweldige Sierlijke Katachtige Utopia en Zijne Autonome Machten ov Valentine Z !
Q & A Here! | Heights of NS! | F7 Etiquette

Clarissa mistaken for Smurf/Avatar: 14
Valentijn Misgendered: 59
Valentijn now a She!

• Never trouble trouble until trouble troubles you.
• As a wise man once said: 我等は砲兵 皇国の護り (We are Artillery Guardians of the Empire).
• World Map is a cat playing with Australia.

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

Postby [violet] » Sun Nov 14, 2021 10:35 pm

Valentine Z wrote:That would explain why I have some small imperfections here and there when I use SVGs on the site. I have some decimal coordinates. Thanks for the information!

Yes, it will truncate to one or two decimal places in most cases, usually one.

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

Postby Minoa » Mon Nov 15, 2021 11:33 am

Trotterdam wrote:The default status does appear to be off. At least, mine is set to off even though I haven't explicitly done so, though it should be noted that I haven't changed my flag since this thing started.

I have to report that the default status is currently on for new nations (example: https://www.nationstates.net/nation=rockmusic). Again, I prefer that the default status is off for new nations as well.
Mme A. d'Oiseau, B.A. (State of Minoa)

User avatar
Refuge Isle
Diplomat
 
Posts: 896
Founded: Dec 14, 2018
Left-wing Utopia

Postby Refuge Isle » Mon Nov 15, 2021 12:06 pm

Minoa wrote:
Trotterdam wrote:The default status does appear to be off. At least, mine is set to off even though I haven't explicitly done so, though it should be noted that I haven't changed my flag since this thing started.

I have to report that the default status is currently on for new nations (example: https://www.nationstates.net/nation=rockmusic). Again, I prefer that the default status is off for new nations as well.

Indeed. There are, as well, nations that select icon-style flags from our stock selection, such as the Pitcairn Islands, and found like this by default, which is rather unfortunate.

User avatar
Afsharid Persia
Lobbyist
 
Posts: 13
Founded: Dec 04, 2014
Inoffensive Centrist Democracy

Postby Afsharid Persia » Mon Nov 15, 2021 5:32 pm

[violet] wrote:
Afsharid Persia wrote:Here, I've screenshotted a zoomed in comparison so you can see: https://imgur.com/a/J47POkH

The top screenshot is what it looks like after it is set as my flag on NationStates.

The bottom screenshot is how it looks in the flag preview before submitting changes. This is how it's intended to look.

Thanks for the screenie. This is a result of compression. It can be particularly heavy on images that are designed to be small, because it limits the precision of co-ordinates. So if you have a 1000x1000 SVG image where all the co-ordinates are integers, those won't be modified, but if that same image is presented in a 20x20 viewbox with co-ordinates like 10.41259, they will be truncated, and you'll lose precision.


Do you or anyone else have any advice on how I can fix this on my end?

User avatar
Insidium
Bureaucrat
 
Posts: 43
Founded: Nov 10, 2021
Anarchy

Postby Insidium » Mon Nov 15, 2021 5:41 pm

Afsharid Persia wrote:
[violet] wrote:Thanks for the screenie. This is a result of compression. It can be particularly heavy on images that are designed to be small, because it limits the precision of co-ordinates. So if you have a 1000x1000 SVG image where all the co-ordinates are integers, those won't be modified, but if that same image is presented in a 20x20 viewbox with co-ordinates like 10.41259, they will be truncated, and you'll lose precision.

Do you or anyone else have any advice on how I can fix this on my end?

What software did you use to make the SVG version?
Last edited by Insidium on Mon Nov 15, 2021 5:43 pm, edited 3 times in total.

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

Postby Tinhampton » Tue Nov 16, 2021 8:21 am

Will the recent changes to the French flag be reflected in France.svg? I know that the blue on France.svg right now is darker than the blue on Europe.svg already
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
Merni
Ambassador
 
Posts: 1654
Founded: May 03, 2016
Democratic Socialists

Postby Merni » Tue Nov 16, 2021 9:04 pm

Tinhampton wrote:Will the recent changes to the French flag be reflected in France.svg? I know that the blue on France.svg right now is darker than the blue on Europe.svg already

It's not an official change by law or anything. There is no obligation on anyone (including state offices in France) to use any specific shade. As such I don't see why any change is required on NS. (See here)
Donate your free time
The Labyrinth |
RIP Residency 3.5.16-18.11.21, killed by simplistic calculation | TGW Warden | GA Committee List
OOC by default | Admins: Please allow blocking WA TGs!
E -8.0 S -3.18
Wrote 532 GA
meth
I've noticed that everybody that is for abortion has already been born. — Ronald Reagan (eww)
When the people are being beaten with a stick, they are not much happier if it is called 'the People’s Stick.' — Mikhail Bakunin (to Karl Marx)
You're supposed to be employing the arts of diplomacy, not the ruddy great thumping sledgehammers of diplomacy. — Ardchoille
The West won the world not by the superiority of its ideas or values or religion [...] but rather by its superiority in applying organised violence. — Samuel P. Huntington (even he said that!)

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

Postby [violet] » Wed Nov 17, 2021 9:49 pm

Fixed France. I did update it earlier but don't think I got the colors quite right.

User avatar
Afsharid Persia
Lobbyist
 
Posts: 13
Founded: Dec 04, 2014
Inoffensive Centrist Democracy

Postby Afsharid Persia » Fri Nov 19, 2021 10:51 pm

Insidium wrote:
Afsharid Persia wrote:Do you or anyone else have any advice on how I can fix this on my end?

What software did you use to make the SVG version?


I used this website: https://www.pngtosvg.com/

User avatar
Porde
Bureaucrat
 
Posts: 60
Founded: Mar 26, 2021
Authoritarian Democracy

Postby Porde » Sun Nov 21, 2021 5:42 am

Why Pitcairn Islands flag is just coat of arms?

https://www.nationstates.net/images/fla ... slands.svg
Last edited by Porde on Sun Nov 21, 2021 5:45 am, edited 1 time in total.
The first (probably) Azerbaijani ever to play NS.
14 yrs

User avatar
Durm
Bureaucrat
 
Posts: 65
Founded: Jun 16, 2020
Psychotic Dictatorship

Postby Durm » Mon Nov 22, 2021 9:56 pm

Durm wrote:
Trotterdam wrote:The default status does appear to be off. At least, mine is set to off even though I haven't explicitly done so, though it should be noted that I haven't changed my flag since this thing started.

I think it only happened to the default (Australian Aboriginal) flag.

It is also on for at least one other flag: Cocos Islands.
Visoraxus Holoratus Starkiller

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

Postby [violet] » Wed Nov 24, 2021 7:19 pm

Porde wrote:Why Pitcairn Islands flag is just coat of arms?

https://www.nationstates.net/images/fla ... slands.svg

Because it looks AMAZING.

Previous

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads