I have a map image, similar to this:

enter image description here
(click for larger)

At 100%, the ocean is noisy and therefore not effectively compressed to png.

Please point me in a direction of an intelligent tool for the job. (I tried GIMP but failed.)


You could use Vector Magic, which is a pretty awesome service that converts images to clean vector art.

I tested it with your image and the result is much better than the original JPG version and half of it's size.

vectorized version of the source image

  • I just noticed that the image dimensions are reduced, but still it's a decent result – Lipis May 17 '12 at 20:38

In GIMP, my tool of choice for this purpose is Filters → Blur → Selective Gaussian Blur:


With some tweaking of the parameters, it can give results very similar to what Lipis produced with Vector Magic. The basic rules are:

  • If any edges look blurred, decrease the max. delta. (Look for edges with low constrast, such as the blue text on blue in the map.)
  • If there's noise around the edges, increase the max. delta.
  • If the solid areas look noisy, increase the radius. Otherwise, try to keep it reasonably low.

Here's the actual result I got with the settings shown above (radius = 15, max. delta = 25). It's fat from perfect, but still much better than a straight conversion to PNG. Most of the remaining noise is on the edges; simply scaling down the result to the same size as Lipis's version should hide most of it.

Ps. Converting the image to a reduced palette (with Image → Mode → Indexed, 16 colors, no dithering) helped shrink it a lot further, probably mainly by getting rid of subtle gradients remaining in the background. It's now down to 140 kB at full size (127 kB after PNGOUT) and looks like this. I did have to manually recolor a few spots that got desaturated in the process. Alternatively, just selecting the sea background with the color select tool and bucket filling it with a uniform color would probably accomplish much the same thing.

  • This looks similar to a function from the ancient Paint Shop Pro 7 (and presumably later versions) called "Edge Preserving Smooth". I've never found an equivalent in other programs. – DisgruntledGoat May 18 '12 at 11:43

ImageAnalyzer has lossy PNG compressor that blurs the image as you lower the quality, so in this case it compresses the image pretty well.

However, you'll have better result if you de-noise the image or save noisy version as JPEG.


The only problem with vector magic is that takes your image and changes it all to vectors so you are begining to lose some of the detailing on the text as it converting it all to shapes.

If you have the original map file in either photoshop, illustrator ect first i would remove the noise on the sea. Which will save an awful lot of space as it will just become one clear blue shape. Then i would export it as a PNG as they tend to be excelent at line image, strong graphics ect, if doing that it should come out about the 40kb (of the top of my head) you can also further reduce that further using a png compressor, i use "png compressor" http://itunes.apple.com/gb/app/png-compressor/id434886325?mt=12

  • 1
    For the Vector Magic issue why not just erase the text before you do it and then retype it? – Ryan May 23 '12 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.