NATION

PASSWORD

Regional flags

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Regional flags

Postby Shikarta » Wed Jun 08, 2011 8:07 am

I know they auto-resize, but they also appear to auto-compress, even if the uploaded flag is many times smaller than the upload limit (and already the correct size). This, unfortunately, distorts perfectly acceptable images. Could anyone elaborate on the purpose of this, whether there's anything I can do that would help relieve distortion, and/or if there's any chance this will be fixed in the near future?

Thanks.

P.s. Unrelated, but is there a reason the World Factbook cannot display any special characters (including accents and unicode dingbats), or is that just a product of my browser?
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).

User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Postby Shikarta » Wed Jun 08, 2011 8:14 am

Addendum

I've noticed that other regions have PNG format flags, which would be ideal. However, every time I attempt to upload a PNG it is converted to a JPG.
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).

User avatar
Ballotonia
Senior Admin
 
Posts: 5494
Founded: Antiquity
Liberal Democratic Socialists

Postby Ballotonia » Wed Jun 08, 2011 8:18 am

The Regional Control page says: "Image will be resized to a maximum of 150x100 pixels. After resizing, image must be less than 30KB. Please do not upload inappropriate images.".

So, make sure your flag is exactly 150x100 pixels, and less than 30 kb when uploading. That way no resizing is done and the image stays as is. If you upload something different, the system will resize it for you and make it a jpg in the process.

Ballotonia
Last edited by Ballotonia on Wed Jun 08, 2011 8:18 am, edited 1 time in total.
"Een volk dat voor tirannen zwicht zal meer dan lijf en goed verliezen, dan dooft het licht…" -- H.M. van Randwijk

User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Postby Shikarta » Wed Jun 08, 2011 8:29 am

In my first post you'll note I've said the flag I'm trying to upload is the correct size, and many times under the upload limit (11.5kb, to be precise).
Last edited by Shikarta on Wed Jun 08, 2011 8:32 am, edited 1 time in total.
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).

User avatar
Ballotonia
Senior Admin
 
Posts: 5494
Founded: Antiquity
Liberal Democratic Socialists

Postby Ballotonia » Wed Jun 08, 2011 8:41 am

Shikarta wrote:In my first post you'll note I've said the flag I'm trying to upload is the correct size, and many times under the upload limit (11.5kb, to be precise).


Ok, sorry. Can you place your image on an image host and link to it from here? That way we can see what your image is, and perhaps figure out what's happening. I'm personally also willing to try uploading it to one of my regions to see if I run into the same problems you do.

Ballotonia
"Een volk dat voor tirannen zwicht zal meer dan lijf en goed verliezen, dan dooft het licht…" -- H.M. van Randwijk

User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Postby Shikarta » Wed Jun 08, 2011 9:56 am

Of course:

Image

[png] [region] [jpg]

Thanks for helping.
Last edited by Shikarta on Wed Jun 08, 2011 9:57 am, edited 1 time in total.
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).

User avatar
Ballotonia
Senior Admin
 
Posts: 5494
Founded: Antiquity
Liberal Democratic Socialists

Postby Ballotonia » Wed Jun 08, 2011 11:59 am

After extensive testing I've come to the following conclusion:

This is a SYSTEM BUG.

The bug appears to be that the system now enforces a much smaller kb limit than what the text in the regional controls indicate (30kb).
I can successfully upload PNG's as regional flag without them being compressed as jpg, but not yours or any other flag taking up more kb diskspace.

I'm still trying to figure out what limit the system is using, but it's clearly not doing what it's supposed to do, nor what it has done before. Even some current PNG region flags canno longer be uploaded as region flags without them becoming jpgs.

So, if you can find a way to use less diskspace you can circumvent this. Otherwise, you'll have to wait for an Admin to fix this problem.

Ballotonia
"Een volk dat voor tirannen zwicht zal meer dan lijf en goed verliezen, dan dooft het licht…" -- H.M. van Randwijk

User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Postby Shikarta » Wed Jun 08, 2011 2:20 pm

Thanks, I'm very grateful. I suppose I'll just wait until an Admin can shed some light on the issue.
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).

User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Postby Shikarta » Thu Jun 09, 2011 11:08 am

Annoyingly, it's doing the same with national flags too. Are there any Admins available to address this?
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).

User avatar
Ballotonia
Senior Admin
 
Posts: 5494
Founded: Antiquity
Liberal Democratic Socialists

Postby Ballotonia » Thu Jun 09, 2011 11:29 am

Shikarta wrote:Annoyingly, it's doing the same with national flags too. Are there any Admins available to address this?


Rules for nation flags are different: viewtopic.php?p=4968912#p4968912

Which now makes me wonder... perhaps that got either inadvertently applied to regional flags as well, or it was intended to apply to those as well but that was never updated in the Region Control page...

Ballotonia
"Een volk dat voor tirannen zwicht zal meer dan lijf en goed verliezen, dan dooft het licht…" -- H.M. van Randwijk

User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Postby Shikarta » Thu Jun 09, 2011 4:45 pm

What a bizarre system, thanks for the link. The PNG I'd tried to upload for the region's flag is under 12kb though, so whatever rules have been applied are not the same as those listed for national flags.
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).

User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Postby Shikarta » Fri Jun 17, 2011 4:28 pm

Bump...

...hello?
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).

User avatar
Sedgistan
Site Director
 
Posts: 35473
Founded: Oct 20, 2006
Anarchy

Postby Sedgistan » Fri Jun 17, 2011 4:35 pm

The admins will look at this when they have time, there was no need to bump the thread, as none of them had been online since you last posted.

User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Postby Shikarta » Sat Jun 18, 2011 6:48 pm

Sedgistan wrote:The admins will look at this when they have time, there was no need to bump the thread, as none of them had been online since you last posted.


Unfortunately I did not know that (nor am I sure how I would), and simply presumed over a week was long enough to warrant a bump.
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).

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

Postby [violet] » Wed Jun 22, 2011 4:33 pm

Shikarta wrote:I know they auto-resize, but they also appear to auto-compress, even if the uploaded flag is many times smaller than the upload limit (and already the correct size).

The upload limit is 250KB. As the page says, the image has to be under 30KB after the server reformats it, and this reformatting happens no matter what. With nation flags, there are loopholes to avoid reformatting in some cases, but there are no loopholes for region flags.

Shikarta wrote:This, unfortunately, distorts perfectly acceptable images.

Well, as far as the server is concerned, "acceptable" is "lowest possible file size while not compressing too much." In this case it's preferred the JPEG as it's 50% smaller. By distortion, do you mean the color? That's the only difference I see: that the white has developed a bluish tinge in the JPEG version.

P.s. Unrelated, but is there a reason the World Factbook cannot display any special characters (including accents and unicode dingbats), or is that just a product of my browser?

Could be either... point me at an example. And maybe start a new thread for that.

Ballotonia wrote:This is a SYSTEM BUG.

Well, it's different to how it used to be. Previously, players had to reformat and resize images to be under 30KB themselves: if they managed to do that, the server left the image alone. Now players can upload much larger images and let the server handle the reformatting and compression for them. And they can't avoid this.

User avatar
Ballotonia
Senior Admin
 
Posts: 5494
Founded: Antiquity
Liberal Democratic Socialists

Postby Ballotonia » Wed Jun 22, 2011 11:50 pm

[violet] wrote:Well, it's different to how it used to be. Previously, players had to reformat and resize images to be under 30KB themselves: if they managed to do that, the server left the image alone. Now players can upload much larger images and let the server handle the reformatting and compression for them. And they can't avoid this.


Ah, yes. As software engineer I'm quite aware that one person's feature can be another person's bug ;)

Ballotonia
Last edited by Ballotonia on Wed Jun 22, 2011 11:50 pm, edited 1 time in total.
"Een volk dat voor tirannen zwicht zal meer dan lijf en goed verliezen, dan dooft het licht…" -- H.M. van Randwijk

User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Postby Shikarta » Sat Jun 25, 2011 4:30 pm

Violet,

The reformatting of both national and regional flags causes image noise, resulting in visible compression artefacts on the images. For example:

Image Image

Left is the Nationstates JPEG, right is the uploaded PNG, and you can see examples of this distortion on the former (for a saving of 7kb). The blue field in fact hides it quite well, and it is far more noticeable on many other flags, especially those with more lines and colours. I can only presume this has not always been the case, as other regional flags (such as Azhukali's) are PNG formatted and uncompressed.

Would it be possible to introduce a compression-free tolerance to regional flags, as already exists with national (what you have referred to as a 'loophole')?

As for unsupported characters, a prime example would be any accented or non-english text, which instead displays as a series of 'Y' and 'A' characters. I've also noticed this with non-roman scripts and unicode dingbats. I'd type it on Maredoratica's world factbook entry to show you, but I'd rather not have it full of gibberish.
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).

User avatar
Synavia
Secretary
 
Posts: 38
Founded: Mar 20, 2011
Ex-Nation

Postby Synavia » Mon Jun 27, 2011 9:05 am

I'd have to agree. For example:
Image

And then this:
Image

Not only did it resize, it blurred and got transformed into a JPG.

(I always use PNG's. I haven't used anything else in years.)
What's a triangle?
HAHAHAHAHA Made you look!
Beware the Attack of the Modems! BEEEWAAARE!
I think I'm awesome even though I'm not. At all.
If you hate sigs that tell you to copy and paste them into your sig, copy and paste this into your sig.
I am possibly the only person on the planet whose hair actually looks better after wearing a hat for an extended period of time.

User avatar
Synavia
Secretary
 
Posts: 38
Founded: Mar 20, 2011
Ex-Nation

Postby Synavia » Mon Jun 27, 2011 9:08 am

Ballotonia wrote:
[violet] wrote:Well, it's different to how it used to be. Previously, players had to reformat and resize images to be under 30KB themselves: if they managed to do that, the server left the image alone. Now players can upload much larger images and let the server handle the reformatting and compression for them. And they can't avoid this.


Ah, yes. As software engineer I'm quite aware that one person's feature can be another person's bug ;)

Ballotonia

And vice versa.
What's a triangle?
HAHAHAHAHA Made you look!
Beware the Attack of the Modems! BEEEWAAARE!
I think I'm awesome even though I'm not. At all.
If you hate sigs that tell you to copy and paste them into your sig, copy and paste this into your sig.
I am possibly the only person on the planet whose hair actually looks better after wearing a hat for an extended period of time.

User avatar
North Mack
Ambassador
 
Posts: 1213
Founded: Apr 27, 2005
Scandinavian Liberal Paradise

Postby North Mack » Mon Jun 27, 2011 2:39 pm

Synavia wrote:I'd have to agree. For example:
(Image)

And then this:
(Image)

Not only did it resize, it blurred and got transformed into a JPG.

(I always use PNG's. I haven't used anything else in years.)


Which, if you'd read above, was entirely intentional. For regional flags, the server reformats them. No exceptions (unlike nation flags.) It will pick the smaller filesize image, which 9 cases out of 10 is going to be a jpeg, which also in 9 cases out of 10, doesn't look as nice as a png. Intentional, and known.
T H E S T E L L A R R E P U B L I C O F N O R T H M A C K
Forged in Fire, Reforged in Blood
[ DeviantArt | NS FT Discord | The Local Cluster | FT Advice and Assistance Thread | The State of the Galaxy ]

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

Postby [violet] » Mon Jun 27, 2011 9:00 pm

Shikarta wrote:Would it be possible to introduce a compression-free tolerance to regional flags, as already exists with national (what you have referred to as a 'loophole')?

Done! Region flags should now not be resized if they're 150x100 or smaller and under 30kB.

User avatar
Shikarta
Bureaucrat
 
Posts: 45
Founded: Sep 29, 2009
Ex-Nation

Postby Shikarta » Wed Jun 29, 2011 4:34 pm

[violet] wrote:
Shikarta wrote:Would it be possible to introduce a compression-free tolerance to regional flags, as already exists with national (what you have referred to as a 'loophole')?

Done! Region flags should now not be resized if they're 150x100 or smaller and under 30kB.


Thank you very much :D
PROTECTED RESERVE of SHIKARTA

Shikarta (English pronunciation: /ʃɪkərtɑː/), is Maredoratica's largest nature and indigenous reserve, represented internationally by the Organisation for the Conservation of Shikarta (an agency of the Maredoratic League).


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Baharan, Ex-Machina 374, Hollow Temple, Inscribia, Ivera, Kyallisar, Magnoliids, RAMEANIA, The Mecix Molls, Tricklandia

Advertisement

Remove ads