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
 ImageMagick plugin and save settings
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

More-Majorum

France
17 Posts

Posted - May 20 2023 :  06:30:41  Show Profile  Reply
Hello everyone,
Is there a help page that details save settings (compression, etc.), for formats supported by ImageMagick?


For example, I don't have a problem with the JPEG format, because everything is detailed on the TIOParams help page, so I know that for the JPEG format, there are the following parameters:
JPEG_ColorSpace
JPEG_DCTMethod
JPEG_CromaSubsampling
JPEG_EnableAdjustOrientation
JPEG_GetExifThumbnail
JPEG_MarkerList
JPEG_OptimalHuffman
JPEG_Progressive
JPEG_Quality
JPEG_Scale_Used
JPEG_Scale
JPEG_Smooth
JPEG_WarningCode
JPEG_WarningTot

Unfortunately, I couldn't find an equivalent help page for the formats supported by the ImageMagick plugin. So I'm completely lost...

Cordially.

xequte

38615 Posts

Posted - May 20 2023 :  20:47:28  Show Profile  Reply
Hi

Most the ImageMagick defines are listed at:

- http://imagemagick.org/script/defines.php
- http://imagemagick.org/script/webp.php

You can pass any defines to ImageMagick by adding them as a dictionary, e.g.

// 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');


Also see:

http://www.imageen.com/help/TIEMiscPluginsImageMagick.html

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

More-Majorum

France
17 Posts

Posted - May 20 2023 :  22:30:28  Show Profile  Reply
Thanks for your help.
Cordially.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: