Re: Re: Re: Memory Map query



You really shouldn't save maps as jpegs, save them as gifs instead
(or another 8-bit compressed format).

Do you want the explanation why?

Gordon Burns wrote:

Go on....

Okay then...

Jpeg is a 24 bit format, ideal for photographs, which can have literally
millions of different colours. It uses a lossy compression to keep the file
sizes small, so it smooths out areas of similar colours. At high
compression this gives rise to nasty looking artefacts, but at low
compression (high quality) it works well.

Gif is an 8 bit format, which only supports 256 colours. This makes it a
very bad choice for photographs. If you really must use gif for photographs
(for example if you want to use the transparency feature), there is a
dithering option which improves things, but you really should avoid gifs for
photos. For any image with 256 colours or less though, gif is ideal.

Maps don't have many colours, which is one reason why gif is best. The
other is compression. Gif uses compression, but it's not lossy like jpegs,
so you don't lose any detail. Jpeg compression has a horrible effect on
maps, just zoom into one, it looks awful.

If you know how, you can set the reduce the bit depth of gifs, making the
file sizes even smaller. You can reduce a map to 6 or even 5 bits without
noticing any difference.

Paul


.



Relevant Pages

  • Re: Drawing Text onto Image
    ... I have chosen to use Jpeg with no compression. ... Public Shared Function GetCodecInfo(ByVal mimeType As String) As ... > the same file-size because GIF uses lossless compression whereas JPEG is ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: My browser shuts down when attempting to view my website
    ... Publisher issues gives me more time. ... ability to convert images to jpg and gif formats, ... compression feature, in theory resamples and resizes, and thus compresses ... I find that if you resize and resample your original pictures in your image ...
    (microsoft.public.publisher.webdesign)
  • Re: My browser shuts down when attempting to view my website
    ... ability to convert images to jpg and gif formats, ... When you insert an image that is say 1600x1200 pixels into your Publisher ... compression feature, in theory resamples and resizes, and thus compresses ...
    (microsoft.public.publisher.webdesign)
  • Re: Zip files
    ... GIF and TIFF files are larger, ... 'natural' images; GIFs are best suited to simple ... Also, the degree of compression of a JPEG is variable, ...
    (comp.sys.acorn.misc)
  • Re: cool project ideas
    ... LZW compression is integral to the GIF format. ... JFIF, which includes parameters for the dgree of compression/lossiness, GIF ...
    (perl.beginners)