Declaration
property HDP_Lossless: Boolean;
Description
Enabling this property will create an HDP or WebP file with mathematically lossless compression (overriding the
HDP_ImageQuality property).
Default: False
ImageEnView1.IO.Params.HDP_Lossless := True;
ImageEnView1.IO.SaveToFile( 'D:\image.hdp' );
// 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_ImageQuality