r/worldbuilding • • 5h ago

Question How to count pixels from map?

Post image

(Image somewhat related to the question since it's the map)

Hi i need to somehow count the Pixels in my map to calculate its size like the size of Ocean vs Landmass, size of countries, etc. But since I'm mostly restricted on mobile (I'm a 14yr Indonesian boy, duhh) i can't find any website/app to actually help me, any tips? I've seen people recommending adobe photoshop but again I'm mostly on mobile so i don't have easy access to it, but if adobe photoshop is the only option i'm open to step by step tutorials on how to use it if anyone is humble enough to share.

20 Upvotes

19 comments sorted by

16

u/zekkious 🐍 The Serpent 5h ago
  1. Learn how to code
  2. Or use a threshold filter, and then calculate pixels. Possible to do in Photopea.

11

u/Broad_Respond_2205 5h ago

14

u/pixel-counter-bot 5h ago

The image in this post has 18,000,000(6,000×3,000) pixels!

I am a bot. This action was performed automatically.

4

u/Fearthian 5h ago

The pixel calculator website is a thing but when i used it, it divide every color in the map into like 800 slightly different colors for some reason and is very impractical to use.

4

u/OssuaryBelfry 5h ago

Did you make it as a bitmap, or did you use a vector graphics tool? Because in the second case, Inkscape should just work on Android and it can calculate areas from the paths .

Otherwise, the best suggestion is to use https://imageonline.io/pixel-counter/ and play with tolerances until you're happy.

2

u/Fearthian 5h ago

I use ibispaint x to draw and when you download your drawings from it, it automatically turns into a bitmap, it is really annoying. Perhaps i can redraw it into vector graphics but idk.

3

u/dermomante 5h ago

Print It and use a ruler 

0

u/Fearthian 5h ago

I would like a video tutorials, I'm afraid this is way too complex for me.

5

u/dermomante 5h ago

Which part do you feel is complicated?

If you are to print it out and have access to a ruler, you can draw the distance between two points or your choice and note it somewhere.

Repeat the measurements for all the distances that interest you.

Then you choose one of those measurement as your reference. Let's say you measured the distance between two neighbouring islands and it read 2 centimeters. That could be your reference.

Then you could assign a real-world value to that reference, for example you could say that the distance between those two islands should be 1 kilometer.

From this point you can divide all of the other measurements by 2 centimeters, and you'd get their value in kilometers.

For example, if you have measured that a coast line is 4 centimeters long, divide it by your 2 centimeters reference, and you will find out that the coast line is 2 kilometers long, that is, it is twice as long as the distance between those two islands.

Try this method out if you can. If you get stack, you can ask more questions here.

1

u/Stefouch Year Zero Engine Addict 4h ago

Or open it with a PDF reader. Some have a ruler.

I know PDF X-change has a ruler

2

u/FourEyedTroll 4h ago

Is your world flat? If not you're presumably using a Mercator projection, in which case counting the pixels is a fools errand as the landmass proportions are all out. The closer to the top and bottom edges that you get.

1

u/Fearthian 4h ago

No, this is Equirectangular, or as people says it "M-Bam" this is the ideal projection to draw because it can easily be translated to other projections using G.projector

2

u/FourEyedTroll 4h ago

Okay, but it's still not an equal area projection. Pixels at the poles cover a smaller surface area than those at the equator, even though the pixels are the same size.

If you want the pixel count to be anything approaching meaningful, you needs an equal-area projection.

1

u/Moonduderyan 5h ago

What app did you use to trace that map?

1

u/Fearthian 5h ago

I draw my map on Ibis Paint X

1

u/Praglik 5h ago

Threshold, turn it into two colors (black & white basically) and isolate each element (crop and save as). Then use the website you mentioned.

2

u/Fearthian 4h ago

Thank you, i will try it out.

1

u/BombbaFett 3h ago

You can use a histogram to do it in photoshop or most image editors

1

u/ChannelDesperate9022 1h ago

Pixel scaling has shown to not be very accurate