TIOParams.HDP_ImageQuality
Declaration
property HDP_ImageQuality: Double;
Description
Specifies the quality to use when saving an HDP, HEIF or WebP file. 0.0 produces the lowest possible quality, and 1.0 produces the highest quality, which for
Microsoft HD Photo results in mathematically lossless compression.
Default: 0.9
ImageEnView1.IO.Params.HDP_ImageQuality := 0.7;
ImageEnView1.IO.SaveToFile( 'D:\image.hdp' );
// HEIF Size Comparisons
ImageEnView1.IO.LoadFromFile( 'D:\image.png' ); // Original PNG - 610KB
ImageEnView1.IO.Params.HDP_ImageQuality := 1.0;
ImageEnView1.IO.SaveToFile( 'D:\image100.heif' ); // 239KB
ImageEnView1.IO.Params.HDP_ImageQuality := 0.9;
ImageEnView1.IO.SaveToFile( 'D:\image90.heif' ); // 182KB
ImageEnView1.IO.Params.HDP_ImageQuality := 0.7;
ImageEnView1.IO.SaveToFile( 'D:\image70.heif' ); // 105KB
ImageEnView1.IO.Params.HDP_ImageQuality := 0.5;
ImageEnView1.IO.SaveToFile( 'D:\image50.heif' ); // 55KB
ImageEnView1.IO.Params.HDP_ImageQuality := 0.2;
ImageEnView1.IO.SaveToFile( 'D:\image20.heif' ); // 15KB
ImageEnView1.IO.Params.HDP_ImageQuality := 0.01;
ImageEnView1.IO.SaveToFile( 'D:\image01.heif' ); // 7KB
// WebP Size Comparisons
ImageEnView1.IO.LoadFromFile( 'D:\Alpha.png' ); // Original PNG - 610KB
ImageEnView1.IO.Params.HDP_ImageQuality := 1.0;
ImageEnView1.IO.Params.HDP_Lossless := False;
ImageEnView1.IO.SaveToFile( 'D:\image100.WebP' ); // 162KB
ImageEnView1.IO.Params.HDP_ImageQuality := 0.9;
ImageEnView1.IO.Params.HDP_Lossless := False;
ImageEnView1.IO.SaveToFile( 'D:\image90.WebP' ); // 96KB
ImageEnView1.IO.Params.HDP_ImageQuality := 0.7;
ImageEnView1.IO.Params.HDP_Lossless := False;
ImageEnView1.IO.SaveToFile( 'D:\image70.WebP' ); // 60KB
ImageEnView1.IO.Params.HDP_ImageQuality := 0.5;
ImageEnView1.IO.Params.HDP_Lossless := False;
ImageEnView1.IO.SaveToFile( 'D:\image50.WebP' ); // 53KB
ImageEnView1.IO.Params.HDP_ImageQuality := 0.2;
ImageEnView1.IO.Params.HDP_Lossless := False;
ImageEnView1.IO.SaveToFile( 'D:\image20.WebP' ); // 44KB
ImageEnView1.IO.Params.HDP_ImageQuality := 0.01;
ImageEnView1.IO.Params.HDP_Lossless := False;
ImageEnView1.IO.SaveToFile( 'D:\image01.WebP' ); // 37KB
ImageEnView1.IO.Params.HDP_Lossless := True;
ImageEnView1.IO.SaveToFile( 'D:\imageLossless.WebP' ); // 329KB (Lossless)
See Also
◼HDP_Lossless