NATION

PASSWORD

I need help?

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Fexia
Spokesperson
 
Posts: 163
Founded: Jul 27, 2009
Ex-Nation

I need help?

Postby Fexia » Mon Apr 05, 2010 8:51 am

I need help? I have been trying to upload a flag for my nation from illustrator. The thing is it is too large. How do i reduce the size to meat NS requirements? Can you help me?
The Federal Empire of Fexia
President:Federalist: Jared Z. Smith
Military Stragth: 3,400,500

viewtopic.php?f=23&t=23444 Fackbook

User avatar
Hassett
Ambassador
 
Posts: 1957
Founded: Sep 11, 2009
Anarchy

Postby Hassett » Mon Apr 05, 2010 9:36 am

You could try saving it as a .jpeg, but you'll lose quality. Or you could use windows picture manager or similar software and either reduce the size or condense it.
Black and Yellow
Economic Left/Right: 8.38
Social Libertarian/Authoritarian: -2.82
-Former United States
-Hassett: A History through Flags

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

Postby North Mack » Mon Apr 05, 2010 10:01 am

I find a lot of the better image editors can export flags with specific settings to save size, such as limited color palates (you'd be amazed how small you can make a large-dimensioned image when you use less then 16 colors) or other tricks like that. As a general rule, png is better quality, gif / jpeg is better sized, and making your flag smaller dimension-wise without changing the filetype means a smaller file too.

EDIT: if you're trying to upload a larger version of the flag you have now then you could export it with 24-bit color with practically no loss, as you're only using 3 colors in the whole flag.
Last edited by North Mack on Mon Apr 05, 2010 10:38 am, edited 2 times in total.
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
Pythagosaurus
Cute Purple Dinosaur
 
Posts: 549
Founded: Nov 24, 2004
Ex-Nation

Postby Pythagosaurus » Mon Apr 05, 2010 10:22 am

North Mack wrote:As a general rule, png is better quality, bmp / jpeg is better sized, ...

Uh, no. As a general rule, png has better compression for images with a smallish number of colors, and jpeg has better compression (although with some loss) for images with a large number of colors (e.g. photographs and some fancy gradients). bmp is not related to jpeg, cannot be used on the web, and has no compression whatsoever.

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

Postby North Mack » Mon Apr 05, 2010 10:38 am

Pythagosaurus wrote:Uh, no. As a general rule, png has better compression for images with a smallish number of colors, and jpeg has better compression (although with some loss) for images with a large number of colors (e.g. photographs and some fancy gradients).


:blink: Really? I must just be using some shit editor then, because every time I make my flag (with it's grand total of 3 colors) it ends up as a HUGE file (on the order of 600kb or so), whereas I can easily compress it to 5 or 6kb by converting it to a jpg with a limited palate... maybe it's time to change my image program....

Pythagosaurus wrote:bmp is not related to jpeg, cannot be used on the web, and has no compression whatsoever.


sorry, meant gif. fixing in above post.
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
Pythagosaurus
Cute Purple Dinosaur
 
Posts: 549
Founded: Nov 24, 2004
Ex-Nation

Postby Pythagosaurus » Mon Apr 05, 2010 11:59 am

gif is also not related to jpeg, it's used for the same things as png, and its compression is comparable if not worse.

User avatar
Bluth Corporation
Negotiator
 
Posts: 6849
Founded: Apr 15, 2008
Ex-Nation

Postby Bluth Corporation » Mon Apr 05, 2010 12:56 pm

Pythagosaurus wrote: bmp...cannot be used on the web


This part is false.
The Huge Mistake of Bluth Corporation
Capital: Newport Beach, Shostakovich | Starting Quarterback: Peyton Manning #18 | Company President: Michael Bluth

Champions of: World Bowl X


You should really be using Slackware

User avatar
Ambassador Ratatoskr
Political Columnist
 
Posts: 3
Founded: Jan 24, 2009
Ex-Nation

Nation Flag Making

Postby Ambassador Ratatoskr » Mon Apr 05, 2010 12:58 pm

I wrote an image FAQ on the Yggdrasil forum. Maybe it will help.

Image size refers to the dimensions of the image itself when displayed on your screen. Dimensions are display-dependent. Standard Windoze monitors are 96 dpi (dots per inch) and Mac displays are usually 168 dpi. So when you display "actual size" it depends on what screen you have. Images for the Internet are always saved at 72 dpi. Image size when printed depends on printer math that is different than screen math, so you have to get to know your printer if you're making hard copies.

File size refers to how much space the file takes up on a hard drive in kb or megabytes. Obviously the more data contained in a file, the more rich and clear the image will be and the larger it can be displayed without degrading and looking funky. The NS flag limitation of file size of < 10kb tends to yield either small and nice or large and funky.

Image resolution refers to dpi (dots per inch). When you enlarge a 72 dpi image, it comes out blurry with jagged edges. The rule of thumb is that whatever you start with should be as big in image size, file size, and resolution as manageable. It's easy to make large images to look nice when you compress them. It's nearly impossible to take tiny low resolution images and make them look nice.

Some examples I tweaked. You can create a fairly massive image for a flag for your nation if it lacks color detail and you can tolerate a bit of blurry. A monster JPEG can be found on Ghost Ensign. JPEG is my preference for nation flags because I can get more color and detail compressed into it without losing too much image size. JPEG uses an advanced compression algorithim that can be tweaked in tiny increments.

I tend to use PNGs for region flags and offsite forum images because the color and details tend to be richer. The 10 kb nation flag limit sometimes precludes PNGs because I have to shrink the image size too much. PNG uses a 7 path interlacing algorithim that allows for very rich colors, but you can't reduce the file size much, so you're stuck reducing the image size to limbo it under 10 kb. I have found JPEG is at least five times more effective at compression with negligible loss in noticeable detail.

I only use GIFs for animated flags because I find the compression costs a lot in image detail and can't be fine grain adjusted as easily as a JPEG. Not that animated GIFs aren't fun. See The Metalhead Kittys and Trout Mask Replica for a couple examples. Each movement you see is a separate GIF, like an old fashioned film with frames. GIF compression works by eliminating colors (256 colors is the maximum palette), so its algorithim tends to make images look blurry and washed out.

Pro Tip: Every time you re-save a compressed file, it losses more data, so don't. Your original should be an uncompressed format like BMP, TIFF, or PSD. Export it to JPEG, GIF, or PNG to make your flag, but save the original uncompressed file. If you CTE, the mean old NS server dumps your precious flag.

Question: a founder contacted me recently about uploading an animated GIF as a region flag and it didn't work. Did he do it wrong, is that a rule, or is that a bug? Thanks.

I always start with a larger image, then export it to the < 10 kb version for uploading. The devil's in the details of trading off image size, color, and clarity to squeak in under the nation file size limit. Also note that no matter what operating system you use, there are TWO file size numbers. One is "size on disk" which includes data that doesn't get uploaded when you change your flag and "image size" which is always smaller. I have successfully uploaded many a flag that says it is 12kb on disk when the image itself is 9.8 kb.

Happy flag making.
Last edited by Ambassador Ratatoskr on Mon Apr 05, 2010 1:17 pm, edited 3 times in total.

User avatar
Rolamec
Negotiator
 
Posts: 6860
Founded: Dec 15, 2006
Ex-Nation

Postby Rolamec » Mon Apr 05, 2010 1:01 pm

Fexia wrote:I need help? I have been trying to upload a flag for my nation from illustrator. The thing is it is too large. How do i reduce the size to meat NS requirements? Can you help me?

Here's a cookie.

*Gives you cookie*
Rolamec of New Earth
A Proud and Progressive Republican.
"Life is hard; it's harder if you're stupid." -John Wayne

Economic Left/Right: 4.50
Social Libertarian/Authoritarian: 2.05

User avatar
Bluth Corporation
Negotiator
 
Posts: 6849
Founded: Apr 15, 2008
Ex-Nation

Postby Bluth Corporation » Mon Apr 05, 2010 1:04 pm

For those who are curious, here's a very very very general explanation of how GIF/PNG and JPEG work.

GIF/PNG work by looking for large contiguous areas of the same color; and then it replaces that area with, essentially, a little note saying to "repeat this color X times over this area" rather than literally encoding the pixel values. Essentially, it's the difference between:

APKJLJWOLKQQNLKJDLKGJPQJNLKJLJKLWENLRJKLEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASDJFNPNKJEWRPERJPE

and

APKJLJWOLKQQNLKJDLKGJPQJNLKJLJKLWENLRJKLE(Insert 64 "A"s here)SDJFNPNKJEWRPERJPE

(the specific methods by which this is done, as well as the format in which information is stored, are what make the difference between GIF and PNG)

JPEG works by taking advantage of how the eye processes images to blend contiguous pixels of a similar but not equivalent colors into a single block of a single color--the compression level dictates how large these blocks are and how much the colors are blended.
The Huge Mistake of Bluth Corporation
Capital: Newport Beach, Shostakovich | Starting Quarterback: Peyton Manning #18 | Company President: Michael Bluth

Champions of: World Bowl X


You should really be using Slackware

User avatar
Bluth Corporation
Negotiator
 
Posts: 6849
Founded: Apr 15, 2008
Ex-Nation

Postby Bluth Corporation » Mon Apr 05, 2010 1:12 pm

Ambassador Ratatoskr wrote: Images for the Internet are always saved at 72 dpi.

Images themselves aren't saved at "any" dpi value.

DPI simply refers to the number of individual pixels in a linear inch on the output device. Images are simply X pixels by Y pixels.

Also note that no matter what operating system you use, there are TWO file size numbers. One is "size on disk" which includes data that doesn't get uploaded when you change your flag

Not really, no. Modern drives and filesystems don't assign individual bytes to files--doing so is horribly space-inefficient, in terms of the amount of storage space that must be devoted to storing filesystem structure metadata vs. storing actual data itself. Instead, the drive is divided up into clusters of bytes, and so the filesystem only has to index individual clusters--which, since they represent (usually) several thousand bytes, can be indexed and tracked with much less data, so instead of having 1024 separate indices for 1024 bytes, I only need one index for a single 1024-byte cluster. A given file is allocated a certain number of clusters, and new clusters are only allocated for that file (or deallocated) if the file grows or shrinks past a cluster boundary. The "size on disk" is the total number of bytes in all the clusters allocated to the file.
The Huge Mistake of Bluth Corporation
Capital: Newport Beach, Shostakovich | Starting Quarterback: Peyton Manning #18 | Company President: Michael Bluth

Champions of: World Bowl X


You should really be using Slackware

User avatar
Ambassador Ratatoskr
Political Columnist
 
Posts: 3
Founded: Jan 24, 2009
Ex-Nation

Postby Ambassador Ratatoskr » Mon Apr 05, 2010 1:24 pm

You are correct than one CAN use any dpi resolution on a web image. The reason I said "always 72 dpi" is that is considered that standard for optimizing web images for efficient hyper terminal transfer protocol. When it's a 10 kb nation flag, increased image resolution is shooting yourself in the foot.

Bluth Corporation wrote:
Also note that no matter what operating system you use, there are TWO file size numbers. One is "size on disk" which includes data that doesn't get uploaded when you change your flag

Not really, no. Modern drives and filesystems don't assign individual bytes to files--doing so is horribly space-inefficient, in terms of the amount of storage space that must be devoted to storing filesystem structure metadata vs. storing actual data itself. Instead, the drive is divided up into clusters of bytes, and so the filesystem only has to index individual clusters--which, since they represent (usually) several thousand bytes, can be indexed and tracked with much less data, so instead of having 1024 separate indices for 1024 bytes, I only need one index for a single 1024-byte cluster. A given file is allocated a certain number of clusters, and new clusters are only allocated for that file (or deallocated) if the file grows or shrinks past a cluster boundary. The "size on disk" is the total number of bytes in all the clusters allocated to the file.


I think we're agreeing here. "Size on disk" is what it's called in OSX, which is a flavor of Linux. But the same principle you describe applies to nearly every OS. The number associated allocated clusters is nearly always a larger number than the actual data contained in an image when assembled for upload. It's a file system artifact.

Now I haz cookie. Thanks!
Last edited by Ambassador Ratatoskr on Mon Apr 05, 2010 1:41 pm, edited 2 times in total.

User avatar
Bluth Corporation
Negotiator
 
Posts: 6849
Founded: Apr 15, 2008
Ex-Nation

Postby Bluth Corporation » Mon Apr 05, 2010 1:35 pm

Ambassador Ratatoskr wrote:
Bluth Corporation wrote:
Also note that no matter what operating system you use, there are TWO file size numbers. One is "size on disk" which includes data that doesn't get uploaded when you change your flag

Not really, no. Modern drives and filesystems don't assign individual bytes to files--doing so is horribly space-inefficient, in terms of the amount of storage space that must be devoted to storing filesystem structure metadata vs. storing actual data itself. Instead, the drive is divided up into clusters of bytes, and so the filesystem only has to index individual clusters--which, since they represent (usually) several thousand bytes, can be indexed and tracked with much less data, so instead of having 1024 separate indices for 1024 bytes, I only need one index for a single 1024-byte cluster. A given file is allocated a certain number of clusters, and new clusters are only allocated for that file (or deallocated) if the file grows or shrinks past a cluster boundary. The "size on disk" is the total number of bytes in all the clusters allocated to the file.


I think we're agreeing here. "Size on disk" is what it's called in OSX, which is a flavor of Linux.

No, OSX is a derivative of the open-source BSDs, and then only indirectly.

But the same principle you describe applies to nearly every OS. The number associated allocated clusters is nearly always a larger number than the actual data contained in an image when assembled for upload.

Not "nearly" always...just, always.
The Huge Mistake of Bluth Corporation
Capital: Newport Beach, Shostakovich | Starting Quarterback: Peyton Manning #18 | Company President: Michael Bluth

Champions of: World Bowl X


You should really be using Slackware

User avatar
Ambassador Ratatoskr
Political Columnist
 
Posts: 3
Founded: Jan 24, 2009
Ex-Nation

Postby Ambassador Ratatoskr » Mon Apr 05, 2010 1:50 pm

LOL. I like a guy who likes to get it right. Quoth the wikipedia:
"Mac OS X, whose "X" represents the Roman numeral for "10" and is a prominent part of its brand identity, is a Unix-based graphical operating system."

I appreciate your clarifications.
:bow:

But we're now kinda off topic to images, so I'm gonna go eat my cookie.

User avatar
Bears Armed
Postmaster of the Fleet
 
Posts: 21475
Founded: Jun 01, 2006
Civil Rights Lovefest

Postby Bears Armed » Tue Apr 06, 2010 5:35 am

Ambassador Ratatoskr wrote:The NS flag limitation of file size of < 10kb

Wasn't this limit increased to '>12kb'?
The Confrederated Clans (and other Confrederated Bodys) of the Free Bears of Bears Armed
(includes The Ursine NorthLands) Demonym = Bear[s]; adjective = ‘Urrsish’.
Population = just under 20 million. Economy = only Thriving. Average Life expectancy = c.60 years. If the nation is classified as 'Anarchy' there still is a [strictly limited] national government... and those aren't "biker gangs", they're traditional cross-Clan 'Warrior Societies', generally respected rather than feared.
Author of some GA Resolutions, via Bears Armed Mission; subject of an SC resolution.
Factbook. We have more than 70 MAPS. Visitors' Guide.
The IDU's WA Drafting Room is open to help you.
Author of issues #429, 712, 729, 934, 1120, 1152, 1474, 1521.

User avatar
Mayor For Life
Spokesperson
 
Posts: 126
Founded: Oct 06, 2008
Ex-Nation

Postby Mayor For Life » Tue Apr 06, 2010 8:54 am

It is 12 kb now, Mister Bear. Oskr obviously hasn't changed his own flag in a year.


Mayor for Life
Founder of Ulthar

User avatar
Fexia
Spokesperson
 
Posts: 163
Founded: Jul 27, 2009
Ex-Nation

Postby Fexia » Tue Apr 06, 2010 11:19 am

Can i find some one to make a flag for me?
The Federal Empire of Fexia
President:Federalist: Jared Z. Smith
Military Stragth: 3,400,500

viewtopic.php?f=23&t=23444 Fackbook

User avatar
The Tofu Islands
Minister
 
Posts: 2872
Founded: Mar 24, 2009
Ex-Nation

Postby The Tofu Islands » Tue Apr 06, 2010 12:26 pm

Fexia wrote:Can i find some one to make a flag for me?

There's a sticky in the Gameplay forum for it, however it may take a bit of time.
In its majestic equality, the law forbids rich and poor alike to sleep under bridges, beg in the streets and steal loaves of bread.


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Baltinica, Javrad, Radicalania, Riemstagrad, The Southern Dependencies

Advertisement

Remove ads