NATION

PASSWORD

New flag rules

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

Advertisement

Remove ads

User avatar
Nouveau Quebecois
Minister
 
Posts: 2239
Founded: Jul 22, 2019
Ex-Nation

Postby Nouveau Quebecois » Thu Jan 09, 2020 7:34 am

[violet] wrote:
Arkadia Aeternum wrote:I’m overall happy with these changes. However, I’ve noticed that nation flags now cover up a large chunk of the nation’s banner space. Is there anything that could be done to offset that? Perhaps moving the flag down a bit depending on size?

Got any examples?

Can we move the flag down on the page so that it doesn't obstruct the banner?
Don't talk to Moderators.
Don't associate with Moderators.
Don't trust Moderators.

Moderators Lie.

User avatar
Trotterdam
Postmaster-General
 
Posts: 10546
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Thu Jan 09, 2020 1:47 pm

Vando0sa wrote:They still show up larger for me..
Gandoor wrote:No, it definitely are showing smaller again, at least on my display.
It looks like a theme thing. Right now for me, they're shrunken on Century and Rift but not Antiquity.

User avatar
Tinhampton
Postmaster-General
 
Posts: 13705
Founded: Oct 05, 2016
Civil Rights Lovefest

Newer flag rules: No flags taller than 196px high?

Postby Tinhampton » Thu Jan 09, 2020 1:56 pm

[violet] wrote:
Automatic Flag Resizing

Your flag will usually be resized to fit within 428x284 pixels... If it's under 150kB and the image fits within either 535x355 pixels or 321x568 pixels, it won't be resized... Animated GIFs are possible if the filesize is under 150kB and the image fits within 321x213 pixels.

[violet] wrote:
Xoriet wrote:Is this a bug?

It is when an image is too big for the layout, e.g. it squishes the text too much.

Not only is NationStates resizing superlarge static flags, but it is resizing them even smaller than it would a GIF. The flag I have uploaded as of a few minutes ago is of dimensions 534x330, is below the 150kb limit, and NationStates indeed recognises it as having dimensions of 534x330 pixels when I C'n'P its location on NS into my address bar. Why, then, does it appear to have the dimensions of 317x196 - rather than, as I would expect, 428x264 or 321x198 - on my nation page as well as when changing my settings (on Firefox 72.0.1 and Win10)?

While [violet] insisted yesterday (above) that images will only be resized if they are "too big for the layout, e.g. [they squish] the text too much," my flag is still 317x196 even after changing my pretitle to "QWERTY," which leaves my full nation name on one line. I suspect that flags are now capped at a maximum display height - not a real maximum - of 196 pixels; those of Gandoor (who was the first to complain about flag resizing in this thread, although hers was slightly larger than it is now) and Xoriet/Arian of Abyss (who [v] was responding to in the second quote in this post) certainly appear to display on my end with flag heights of 196px. Even older flags such as that of Christian Democrats, which was uploaded long prior to the new flag rules, are being subjected to this cap. I will happily provide screenshotted proof of the new 196px-tall flags if needs be, if the links to the nation pages in this paragraph suffice not.

For future reference, I can corroborate what Trotterdam says about superlarge flags only appearing on Antiquity, hence my use of "maximum display height" above.
Last edited by Tinhampton on Thu Jan 09, 2020 2:38 pm, edited 2 times in total.
The Self-Administrative City of TINHAMPTON (pop. 329,537): 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, GA#589, GA#590, SC#382, SC#385*, GA#597, GA#607, SC#415, GA#647, GA#656, GA#664, GA#671, GA#674, GA#675, GA#677, GA#680, Issue #1580, GA#682, GA#683, GA#684, GA#692, GA#693, GA#715
The rest of my CV: Cup of Harmony 73 champions; Philosopher-Queen of Sophia; *author of the most popular SC Res. ever; anti-NPO cabalist in good standing; 48yo Tory woman w/Asperger's; Cambridge graduate ~ currently reading The World by Simon Sebag Montefiore

User avatar
[violet]
Executive Director
 
Posts: 16207
Founded: Antiquity

Postby [violet] » Thu Jan 09, 2020 3:26 pm

I'm still messing around with it, but here are the different concepts in play.

When you upload a custom flag, it's resized according to the rules above to fit within a set height, width, and filesize.

In ye olden days, that was the end of the story, because your image was a file that would always display at that size, no matter what.

Today, however, we have people using a much broader range of screens, some very small, some very large, and with different pixel densities. So whereas it used to be fairly safe to assume roughly how much of a screen a 300x200 pixel image would occupy, this is no longer the case.

Thus how the flag looks can also depend on:
  • the width of your browser: flags aren't permitted to take up too much horizontal screen real estate (currently: 25%)
  • the height of your browser: flags aren't permitted to take up too much vertical screen real estate (currently: 30%)
  • the pixel density of your screen: phones and tablets in particular can display a higher-quality image from the same nominal amount of pixels, which makes it useful to allow flag images to be larger than the displayed size
  • whether you are using a NationStates theme that supports the above

User avatar
[violet]
Executive Director
 
Posts: 16207
Founded: Antiquity

Postby [violet] » Thu Jan 09, 2020 3:30 pm

Nouveau Quebecois wrote:
[violet] wrote:Got any examples?

Can we move the flag down on the page so that it doesn't obstruct the banner?

Example? There's a very wide range of flag dimensions and screen sizes; I can't guess which combination you're looking at.

That said, the positioning of flags vs banners is indeed based on the old logic that images would all be about the same dimensions, and the nation page layout needs to be modernized.

User avatar
Boda
Diplomat
 
Posts: 540
Founded: Nov 14, 2019
Ex-Nation

Postby Boda » Thu Jan 09, 2020 4:43 pm

Flags cutting off huge sections of banners is nothing new and not specific. Pretty much any flag that’s not resized can overlap with the banner a little, or alot.
The Order of the Grey Wardens
In War, Victory. In Peace, Vigilance. In Death, Sacrifice.

User avatar
Gandoor
Postmaster-General
 
Posts: 10233
Founded: Sep 23, 2008
Civil Rights Lovefest

Postby Gandoor » Fri Jan 10, 2020 6:48 am

[violet] wrote:I'm still messing around with it, but here are the different concepts in play.

When you upload a custom flag, it's resized according to the rules above to fit within a set height, width, and filesize.

In ye olden days, that was the end of the story, because your image was a file that would always display at that size, no matter what.

Today, however, we have people using a much broader range of screens, some very small, some very large, and with different pixel densities. So whereas it used to be fairly safe to assume roughly how much of a screen a 300x200 pixel image would occupy, this is no longer the case.

Thus how the flag looks can also depend on:
  • the width of your browser: flags aren't permitted to take up too much horizontal screen real estate (currently: 25%)
  • the height of your browser: flags aren't permitted to take up too much vertical screen real estate (currently: 30%)
  • the pixel density of your screen: phones and tablets in particular can display a higher-quality image from the same nominal amount of pixels, which makes it useful to allow flag images to be larger than the displayed size
  • whether you are using a NationStates theme that supports the above

I guess that makes sense but IDK I guess I'm just disappointed that I can upload a bigger flag but I can't actually see it because it scales based on my screen size and pixel density.

Again this might just be me, but that feels like it defeats the point, I uploaded a larger flag so I could have a larger flag on my page, not have it displayed smaller than under the previous max size limit.
OOC - Call me Viola
IC Flag|Gandoor Wiki|Q&A|National Currency Database
Reminder that true left-wing politics are incompatible with imperialism, authoritarianism, totalitarianism, and dictatorship in all forms.
Flag is currently a Cinderace.
I'm transfeminine non-binary (but I don't mind or care if you refer to me as a woman).
She/They
27 years old
OOC Info
Twitter: @Sailor_Viola
Steam: Princess Viola
Mastodon: @princessviola@retro.pizza
TGs are welcome

User avatar
Verdant Haven
Director of Content
 
Posts: 2802
Founded: Feb 26, 2013
Left-wing Utopia

Postby Verdant Haven » Fri Jan 10, 2020 4:54 pm

Thank you for this update. Ran in to it quite by mistake while re-uploading the Forest flag today, and being pleasantly surprised by how large it was. Definitely an appreciated change!
Last edited by Verdant Haven on Fri Jan 10, 2020 4:55 pm, edited 1 time in total.

User avatar
Almonaster Nuevo
Negotiator
 
Posts: 6856
Founded: Mar 11, 2007
Civil Rights Lovefest

Postby Almonaster Nuevo » Wed Jan 15, 2020 11:10 am

Me likey. Thanks [v].
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
Please do not TG me about graphics requests. That's what the threads are there for.

User avatar
Nakena
Post Marshal
 
Posts: 15010
Founded: May 06, 2017
Ex-Nation

Postby Nakena » Fri Jan 17, 2020 6:23 pm

I love the new flag rules. A very nice innovation.

User avatar
D055
Civilian
 
Posts: 1
Founded: Jan 05, 2019
Father Knows Best State

Postby D055 » Fri Jan 17, 2020 6:41 pm

I'm very fond of the new flag rules too, especially the GIF rules.

User avatar
Recuecn
Ambassador
 
Posts: 1054
Founded: Feb 02, 2015
New York Times Democracy

Postby Recuecn » Sun Jan 19, 2020 1:03 pm

Have the rules changed again? My flag used to be really huge and now gets resized like it used to, but with the difference that now it keeps its transparency even when being resized. Am I just going crazy?

Also, I'm still wondering what the new specifics for regional flags are.
rəswɛsən

User avatar
Gandoor
Postmaster-General
 
Posts: 10233
Founded: Sep 23, 2008
Civil Rights Lovefest

Postby Gandoor » Sun Jan 19, 2020 1:11 pm

Recuecn wrote:Have the rules changed again? My flag used to be really huge and now gets resized like it used to, but with the difference that now it keeps its transparency even when being resized. Am I just going crazy?

Also, I'm still wondering what the new specifics for regional flags are.


From earlier on this very page:
[violet] wrote:I'm still messing around with it, but here are the different concepts in play.

When you upload a custom flag, it's resized according to the rules above to fit within a set height, width, and filesize.

In ye olden days, that was the end of the story, because your image was a file that would always display at that size, no matter what.

Today, however, we have people using a much broader range of screens, some very small, some very large, and with different pixel densities. So whereas it used to be fairly safe to assume roughly how much of a screen a 300x200 pixel image would occupy, this is no longer the case.

Thus how the flag looks can also depend on:
  • the width of your browser: flags aren't permitted to take up too much horizontal screen real estate (currently: 25%)
  • the height of your browser: flags aren't permitted to take up too much vertical screen real estate (currently: 30%)
  • the pixel density of your screen: phones and tablets in particular can display a higher-quality image from the same nominal amount of pixels, which makes it useful to allow flag images to be larger than the displayed size
  • whether you are using a NationStates theme that supports the above


The tl;dr: The flag is still the size that you originally uploaded it as (which can be seen if you right-click and view your flag image by itself in a new tab and check your display) but it now gets resized on your computer display based on your browser's height and width and pixel density of whatever you're using to view NS instead of just displayed as whatever the image res is.
OOC - Call me Viola
IC Flag|Gandoor Wiki|Q&A|National Currency Database
Reminder that true left-wing politics are incompatible with imperialism, authoritarianism, totalitarianism, and dictatorship in all forms.
Flag is currently a Cinderace.
I'm transfeminine non-binary (but I don't mind or care if you refer to me as a woman).
She/They
27 years old
OOC Info
Twitter: @Sailor_Viola
Steam: Princess Viola
Mastodon: @princessviola@retro.pizza
TGs are welcome

User avatar
Recuecn
Ambassador
 
Posts: 1054
Founded: Feb 02, 2015
New York Times Democracy

Postby Recuecn » Tue Jan 21, 2020 2:50 pm

Gandoor wrote:
Recuecn wrote:Have the rules changed again? My flag used to be really huge and now gets resized like it used to, but with the difference that now it keeps its transparency even when being resized. Am I just going crazy?

Also, I'm still wondering what the new specifics for regional flags are.


From earlier on this very page:
[violet] wrote:I'm still messing around with it, but here are the different concepts in play.

When you upload a custom flag, it's resized according to the rules above to fit within a set height, width, and filesize.

In ye olden days, that was the end of the story, because your image was a file that would always display at that size, no matter what.

Today, however, we have people using a much broader range of screens, some very small, some very large, and with different pixel densities. So whereas it used to be fairly safe to assume roughly how much of a screen a 300x200 pixel image would occupy, this is no longer the case.

Thus how the flag looks can also depend on:
  • the width of your browser: flags aren't permitted to take up too much horizontal screen real estate (currently: 25%)
  • the height of your browser: flags aren't permitted to take up too much vertical screen real estate (currently: 30%)
  • the pixel density of your screen: phones and tablets in particular can display a higher-quality image from the same nominal amount of pixels, which makes it useful to allow flag images to be larger than the displayed size
  • whether you are using a NationStates theme that supports the above


The tl;dr: The flag is still the size that you originally uploaded it as (which can be seen if you right-click and view your flag image by itself in a new tab and check your display) but it now gets resized on your computer display based on your browser's height and width and pixel density of whatever you're using to view NS instead of just displayed as whatever the image res is.

Ok, sure, I'd seen that comment. I didn't realize it meant that resizing no longer removes any transparency in the flag. I was thinking that there was a difference between the game resizing the file itself and simply displaying it at a different size depending on the size or proportions of the browser window. Are those in fact the same thing?

I'm also still curious about what exact dimensions are ok, both for national and regional flags. The comments about browser display only mention percentages of screen real estate, which doesn't match up with current help text which mentions pixels and file sizes (confirming, as far as I can tell, my understanding that resizing the file is a different thing than resizing its display).

Maybe I'm wrong and my monitor's pixel density is getting put to use now which is why my flag got smaller again--but either way the text when uploading flags is wrong, yeah? Either it is about pixels and file sizes, in which case it's saying the wrong ones, or it's not, in which case it's still weird to me that the text would be about a different set of requirements than the ones in use.
rəswɛsən

User avatar
Tessen
Spokesperson
 
Posts: 151
Founded: Aug 21, 2004
Inoffensive Centrist Democracy

Postby Tessen » Thu Feb 06, 2020 3:05 pm

Can we get some final clarification on dimensions for national and regional flags under these new rules. I don't believe the repeated requests for regional flag clarification has been addressed yet.

Director of the American Union and American Independent States roleplay regions.

User avatar
N7eternia
Envoy
 
Posts: 254
Founded: Feb 20, 2019
Ex-Nation

Postby N7eternia » Sat Mar 14, 2020 10:09 pm

This is amazing news for me. I'll be in an updating frenzy.

User avatar
Recuecn
Ambassador
 
Posts: 1054
Founded: Feb 02, 2015
New York Times Democracy

Postby Recuecn » Sun Mar 15, 2020 8:16 am

Since this has already been bumped for me, I'll jump back on here--I'm still wondering about what the size requirements are for regional flags--the game says all regional flags are resized to 150 x 100 pixels, but that's not actually true.
rəswɛsən

Previous

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Queroquestan

Advertisement

Remove ads