Hi Dscho
Please email me for an update that allows quality to be set using 'ImageMagick:Quality'
// Save a JPEG as WebP at 95% quality
ImageEnView1.IO.LoadFromFile( 'D:\im.jpg' );
ImageEnView1.IO.Params.Dict.Clear();
ImageEnView1.IO.Params.Dict.Insert( 'ImageMagick:Quality', 95 );
ImageEnView1.IO.SaveToFile( 'D:\Image_out.WebP' );
Plus other options such as webp:lossless:
// Save a PNG file as a lossless WebP with maximum compression
ImageEnView1.IO.SaveToFile('D:\Image.png');
ImageEnView1.IO.Params.Dict.Insert( 'ImageMagick', TIEDictionary.Create() );
ImageEnView1.IO.Params.Dict.GetDictionary('ImageMagick').Insert( 'webp:lossless', 'True' );
ImageEnView1.IO.Params.Dict.GetDictionary('ImageMagick').Insert( 'webp:method', 6 );
ImageEnView1.IO.SaveToFile('D:\Image_out.webp');
Please start a new forum topic if you need more detail.
Nigel
Xequte Software
www.imageen.com