Hi
Anyone who can explain me why the atalasoft-lzw compression gives such a poor results. Via the code beneath I saved one of my standard files (flamingo.tif) two times; first uncompressed and then lzw-compressed. Here are the results of the jury:
- flamingo.tif 44KB (the original file)
- flamingo_atalasoft_uncompressed.tif 39KB
- flamingo_atalasoft_lzw 40KB (even worser then the uncompressed coding!!!)
- flamingo_lzw 2KB (compressed with an lzw-algorithme I programmed my own)
My code:
static void Main(string[] args)
{
string fnsrc = "c:\\images\\flamingo.tif";
string fndst_tif_unc = "c:\\images\\flamingo_atalasoft_uncompressed.tif";
string fndst_tif_lzw = "c:\\images\\flamingo_atalasoft_lzw.tif";
try
{
Atalasoft.Imaging.
AtalaImage im_src = new Atalasoft.Imaging.AtalaImage(fnsrc);
im_src.Save(fndst_tif_unc,
new TiffEncoder(TiffCompression.NoCompression), null);
im_src.Save(fndst_tif_lzw,
new TiffEncoder(TiffCompression.Lzw), null);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}