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
Ex-Nation

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
Negotiator
 
Posts: 6204
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: 468
Founded: Feb 20, 2015
Inoffensive Centrist 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
Negotiator
 
Posts: 6204
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: 14008
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: 43
Founded: Apr 18, 2015
Civil Rights Lovefest

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
Progressive Conservatism • Environmentalism • Monarchism • LGBT+ Rights
Make America Great Britain Again

User avatar
Minoa
Senator
 
Posts: 4023
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: 14008
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
Senator
 
Posts: 4611
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?
Delegate-Ambassador: Alexander Smith (NatSov)
Assistant: Bianca Venkman (IntFed)
Ex-WAD:
* Federation of Fictitious States
* Union of Liberal Nations
* VenelvisWarzone Asia (x2)
* Northern GreenlandExion
* Warzone Africa
Author of: SC#250, SC#251
The Self-Administrative City of Tinhampton (pop. 319,372) Proudly Urban, Unashamedly Rural Factbooks
Mayor: Saffron Howard (UCP; libertarian). Tinhamptonian Achievements
National football team (trigram TIN): Cup of Harmony 73 Champions - ranked 37th (19.84pts)

User avatar
Almonaster Nuevo
Minister
 
Posts: 3416
Founded: Mar 11, 2007
Civil Rights Lovefest

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
Senator
 
Posts: 4023
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
Senator
 
Posts: 4023
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
Ex-Nation

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: Wopruthien

Remove ads