NATION

PASSWORD

Giant Custom Flags?

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Perfectania Prime
Civilian
 
Posts: 1
Founded: Jul 19, 2017
Father Knows Best State

Giant Custom Flags?

Postby Perfectania Prime » Sat Aug 12, 2017 6:56 pm

Why are custom flags so huge? When you use the existing flags they are quite small, maybe 2 inches wide, but when you use a custom flag it is much larger, at least 5 inches across. It shouldn't be an issue to make them the same size, so I wonder if this was by design and if so, why?

User avatar
Gig em Aggies
Senator
 
Posts: 4799
Founded: Aug 15, 2009
Iron Fist Consumerists

Postby Gig em Aggies » Sat Aug 12, 2017 7:15 pm

Perfectania Prime wrote:Why are custom flags so huge? When you use the existing flags they are quite small, maybe 2 inches wide, but when you use a custom flag it is much larger, at least 5 inches across. It shouldn't be an issue to make them the same size, so I wonder if this was by design and if so, why?


Coding and time are really the main reasons plus you can just upload a irl nation flag as a custom flag anyways
“One of the serious problems of planning against Aggie doctrine is that the Aggies do not read their manuals nor do they feel any obligations to follow their doctrine.”
“The reason that the Aggies does so well in wartime, is that war is chaos, and the Aggies practices chaos on a daily basis.”
“If we don’t know what we are doing, the enemy certainly can’t anticipate our future actions!”

User avatar
The Snazzylands
Chargé d'Affaires
 
Posts: 361
Founded: Feb 20, 2015
New York Times Democracy

Postby The Snazzylands » Sat Aug 12, 2017 7:20 pm

You can just make your custom flag the same dimensions as the default flags, no? But as far as I'm concerned, the more screen space my glorious flag takes up, the better.
Mind awaits entrance
Of a witty signature;
One has yet to come.

User avatar
Gig em Aggies
Senator
 
Posts: 4799
Founded: Aug 15, 2009
Iron Fist Consumerists

Postby Gig em Aggies » Sat Aug 12, 2017 7:27 pm

The Snazzylands wrote:You can just make your custom flag the same dimensions as the default flags, no? But as far as I'm concerned, the more screen space my glorious flag takes up, the better.


As for the first part I never really tried it but as for the second part in your dreams that's my territory your coming into.
“One of the serious problems of planning against Aggie doctrine is that the Aggies do not read their manuals nor do they feel any obligations to follow their doctrine.”
“The reason that the Aggies does so well in wartime, is that war is chaos, and the Aggies practices chaos on a daily basis.”
“If we don’t know what we are doing, the enemy certainly can’t anticipate our future actions!”

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

Postby [violet] » Sun Aug 13, 2017 2:19 pm

Perfectania Prime wrote:Why are custom flags so huge? When you use the existing flags they are quite small

When NationStates began in 2002, the average monitor was 800x600 pixels, which meant the standard flags took up a reasonable amount of space. As monitors have increased in resolution, the flags occupy less of the screen. They're now smaller than ideal, but no-one has gotten around to recreating them all. We have increased the size limits on custom flags, though, since that's easier to do.

User avatar
Montmorencia
Bureaucrat
 
Posts: 42
Founded: Apr 18, 2015
Left-wing Utopia

Postby Montmorencia » Sun Aug 13, 2017 7:04 pm

[violet] wrote:
Perfectania Prime wrote:Why are custom flags so huge? When you use the existing flags they are quite small

When NationStates began in 2002, the average monitor was 800x600 pixels, which meant the standard flags took up a reasonable amount of space. As monitors have increased in resolution, the flags occupy less of the screen. They're now smaller than ideal, but no-one has gotten around to recreating them all. We have increased the size limits on custom flags, though, since that's easier to do.

Wouldn't it make sense to get the new flags from Wikicommons since the national and territorial flags there are within the Creative Commons. Unless there's more that goes into the default flags.
Last edited by Montmorencia on Sun Aug 13, 2017 7:04 pm, edited 1 time in total.
————————————
——————————
Montmorencia

Economic Left -6.5 | Social Libertarian -4.05
Democratic Socialism • Environmentalism • Monarchism • LGBT+ Rights

Transition Team Leader of Forest (October 2016-December 2016)
Minister for Statistics & Research of Forest (December 2016-February 2017) (August 2017-September 2017)
Minister of Foreign Affairs of Forest (February 2017-June 2017)
Make America Great Britain Again

User avatar
Minoa
Minister
 
Posts: 3325
Founded: Oct 05, 2011
Civil Rights Lovefest

Postby Minoa » Mon Aug 14, 2017 3:34 am

If I recall correctly, there was some resistance to SVG flags because of how badly IE/Edge supports it. However, I am not seeing it as a problem to implement SVG flags, since many of the visitors are using Chrome, Safari or Firefox (or its derivatives).

Alternatively, NationStates can use librsvg.

Side note, the next update to the flags feature is an opportunity to make sure that the 3:2 ratio flags follow an actual 3:2 ratio (e.g. 108 px by 72 px instead of 107 px by 71 px).
Last edited by Minoa on Mon Aug 14, 2017 4:32 am, edited 1 time in total.
Madame A. d'Oiseau, B.A. (State of Minoa)

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

Postby [violet] » Mon Aug 14, 2017 2:24 pm

Minoa wrote:If I recall correctly, there was some resistance to SVG flags because of how badly IE/Edge supports it. However, I am not seeing it as a problem to implement SVG flags, since many of the visitors are using Chrome, Safari or Firefox (or its derivatives).

Unfortunately many people still use Internet Explorer to access NS, and since IE can't scale SVG images, it would break the site pretty badly for them.

Minoa wrote:Alternatively, NationStates can use librsvg.

I just had a play with it and it mostly worked but also caused a few server segmentation faults. If I can get it working, I'll add it.

Minoa wrote:Side note, the next update to the flags feature is an opportunity to make sure that the 3:2 ratio flags follow an actual 3:2 ratio (e.g. 108 px by 72 px instead of 107 px by 71 px).

Good point!

User avatar
Tinhampton
Minister
 
Posts: 3225
Founded: Oct 05, 2016
Anarchy

Postby Tinhampton » Mon Aug 14, 2017 4:39 pm

[violet] wrote:
Minoa wrote:Side note, the next update to the flags feature is an opportunity to make sure that the 3:2 ratio flags follow an actual 3:2 ratio (e.g. 108 px by 72 px instead of 107 px by 71 px).

Good point!

So... if this DOES happen, I'll assume that the maximum custom flag sizes will be raised to 324x216 and 432x288 respectively?
Frisbeeteria wrote:Edit: Ninja'd by a padlock
Challenge me | TG me
Tests: PolComp, 8values
British
+161 posts by Finlarvat
Posts of Win
[REDACTED] | Sweet chaos | Beware the evil carrots
COCANEFA chants | CANTERLOT: Public Enemy #1
United, we are strong. | Modly truths | Fenda tools
Saint Josephtan | Costa Rican empanadas!
Guelder wrote:I also support banning Arabic numerals

Guelder wrote:No, i only want the current 123-numbers used in the western world

Risottia wrote:
Thunder Place wrote:I, for one, chant anti mars slogans every earth day.

Bloody Snickersists.
The Self-Administrative City of Tinhampton Proudly Urban, Unashamedly Rural Factbooks IC Achievements Reference
Mayor: John Price (UCP; centre-right). Delegate-Ambassador to the WA: Alexander Smith (NatSov). Assistant: Jamie Williamson (IntFed).

User avatar
Almonaster Nuevo
Minister
 
Posts: 2616
Founded: Mar 11, 2007
Left-wing Utopia

Postby Almonaster Nuevo » Mon Aug 14, 2017 6:33 pm

Shhh! They might be bigger.
Christian Democrats wrote:Would you mind explaining what's funny? I'm not seeing any humor.

The Blaatschapen wrote:I'll still graze the forums with my presence

User avatar
Minoa
Minister
 
Posts: 3325
Founded: Oct 05, 2011
Civil Rights Lovefest

Postby Minoa » Tue Aug 15, 2017 12:21 am

Tinhampton wrote:
[violet] wrote:Good point!

So... if this DOES happen, I'll assume that the maximum custom flag sizes will be raised to 324x216 and 432x288 respectively?

It will likely be no more of an issue, once librsvg is implemented.
Madame A. d'Oiseau, B.A. (State of Minoa)

User avatar
Minoa
Minister
 
Posts: 3325
Founded: Oct 05, 2011
Civil Rights Lovefest

Postby Minoa » Fri Aug 18, 2017 12:06 pm

Hi, I have coded a SVG version of the Ex-Nation flag, since that is a system flag and the necessary coding for IE has been built-in: https://nsindex.net/wiki/File:Ex-Nation_Flag.svg

Please confirm if it works in IE.

I recently did some mods to the .htaccess file to allow links to image description pages, so hit Command+Shift+R if it doesn't work the first time.

-- Minoa
Madame A. d'Oiseau, B.A. (State of Minoa)

User avatar
Cresenthia
Diplomat
 
Posts: 576
Founded: Mar 03, 2015
Corporate Bordello

Postby Cresenthia » Sat Aug 19, 2017 3:04 pm

Minoa wrote:Hi, I have coded a SVG version of the Ex-Nation flag, since that is a system flag and the necessary coding for IE has been built-in: https://nsindex.net/wiki/File:Ex-Nation_Flag.svg

Please confirm if it works in IE.

I recently did some mods to the .htaccess file to allow links to image description pages, so hit Command+Shift+R if it doesn't work the first time.

-- Minoa

Or ctrl-F5/ctrl-shift-r in Windows. ;)


Remove ads

Return to Technical

Who is online

Users browsing this forum: Raffaellica

Remove ads