Myths on Maps

  • Log in
  • « Multiple layer types
  • Database alteration? »

Adjust too-bright colour scheme of map tiles

Posted by gregster on 27 Apr 2010 in Activity log

The tiles I got from maps-for-free.com are a bit too bright for my purposes, so I built a workflow to adjust them.
1) adjust an example image (like this one.) to your liking (I used the GIMP to produce this.)
2) make sure you're using v6.5.3-4 or higher of ImageMagick (first version that supports hald-clut)
3) create a hald colour lookup table with IM like this: "convert hald:8 adjsuted_image.png hald-clut.png". The output image is a palette of the colours used in your adjusted image.
4) test things out by doing this: "convert original_file.png hald-clut.png -hald-clut adjusted_version.png"
5) in my case the results weren't quite right, so I ran my GIMP preset against the hald-clut.png to adjust the palette and then ran #4 again.
6) write a script that recursively runs this command on all of your images, like this: "for i in $( find ./ -name *.jpg); do convert $i hald-clut.png -hald-clut $i; done;"

The results can be seen right now at zoom level 6 across the Mediterranean here: http://hcmc.uvic.ca/grs/map/index2.html

This entry was posted by Greg and filed under Activity log.

Myths on Maps

This project will focus on deploying an interactive map of Europe with overlays for Greek and Roman myths, history, people and events.
SVN instructions for MoM editors
Development URL
HCMC Blogs home
  • Archives
  • Categories

Search

XML Feeds

  • Atom: Posts
  • RSS 2.0: Posts
What is RSS?

This collection ©2025 by admin • Help • Multiple blogs done right!