ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 bitmap to webp
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

woywod

Turkey
5 Posts

Posted - Sep 21 2023 :  16:30:17  Show Profile  Reply
Hello, I want to convert bitmap format to webp lossless and then convert webp format to bitmap. Is something like this possible ??

xequte

38586 Posts

Posted - Sep 21 2023 :  18:16:46  Show Profile  Reply
Sure. You need to use either the WIC or ImageMagick plug-in:

http://www.imageen.com/help/TIEMiscPluginsImageMagick.html
http://www.imageen.com/help/File_Formats.html#WIC

// Save a PNG file as a lossless WebP with lossless compression (using ImageMagick plug-in)
var
  imDict: TIEDictionary
begin
  ImageEnView1.IO.LoadFromFile( 'D:\Image.png' );
  imDict := TIEDictionary.Create();
  imDict.Insert( 'webp:lossless', true );
  imDict.Insert( 'webp:method', 0 );
  imDict.Insert( 'webp:auto-filter', true );
  ImageEnView1.IO.Params.Dict.Insert( 'ImageMagick', imDict );
  ImageEnView1.IO.SaveToFile( 'D:\Image_out.webp' );
end;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

woywod

Turkey
5 Posts

Posted - Sep 22 2023 :  12:22:06  Show Profile  Reply
thankyou
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: