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 and Ghostscript FAQ
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

xequte

38607 Posts

Posted - Feb 13 2014 :  20:12:22  Show Profile  Reply
Hi

Please note that ImageEn supports two methods of using ImageMagick to add support for more file formats:

1. ImageMagick.DLL

The DLL is based on a much older version of ImageMagick and so does not support as many formats, nor does it support Ghostscript (for loading of PDF files)

To use, you must add the ImageMagick.DLL (available from the registered users page) to your EXE folder. Then call:

IEAddExtIOPlugIn('imagemagick.dll'); (or IEAutoLoadIOPlugins)


2. ImageMagick Installation

ImageEn can support inherit support for all ImageMagick formats if it has been installed on the destination machine.

To do so you must call (once in your application):

TIEMiscPluginsImageMagick.RegisterPlugin(); (or IEAutoLoadIOPlugins)


You can download ImageMagick from:

http://www.imagemagick.org/script/binary-releases.php#windows

You will need one of the versions that includes DLL in the filename. Choose 64bit if you are sure that the O/S will always be 64bit, otehrwise just use the x86 version. Ensure you restart after installing ImageMagick.

Note: ImageMagick is licensed under Apache, which is not overly restrictive (View details)


GhostScript Support

The newer version of ImageMagick also supports Ghostscript to add support for loading of PDF and PS files (as rasterized images), i.e. you must install ImageMagick and Ghostscript to support PDF/PS.

You can download Ghostscript from:

http://www.ghostscript.com/download/gsdnld.html

Note: Ghostscript is licensed using the GNU Affero Public License (AGPL) which limits its distribution in commercial products and may require a commercial license.


To support PCL files you will also need to download GhostPCL from:

http://www.ghostscript.com/download/gpcldnld.html

Copy the exe file from the zip to your ImageMagick path and rename it pcl6.exe

Note: GhostPCL is licensed using the GNU Affero Public License (AGPL) which limits its distribution in commercial products and may require a commercial license.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com

xequte

38607 Posts

Posted - Feb 13 2014 :  20:46:18  Show Profile  Reply
Some users have asked if ImageMagick (latest version) can be used by ImageEn without installing it.

I believe it is possible to distribute the ImageMagick files, but you will need to specify some environment variables: MAGICK_CODER_MODULE_PATH and MAGICK_FILTER_MODULE_PATH

Please see the following links for more info:

http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=17319
http://www.imagemagick.org/script/advanced-windows-installation.php
http://stackoverflow.com/questions/3050347/packaging-an-application-that-uses-the-imagemagick-c-api

Note: I understand that this is permitted by the ImageMagick license, but you should clarify this for yourself


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

xequte

38607 Posts

Posted - Sep 17 2014 :  16:18:08  Show Profile  Reply
Hi

Remember when installing ImageMagick to download the version that matches the bitness of the application you are compiling. I.e. if you are creating a 32bit application in Delphi then ensure that you install the 32bit verison of ImageMagick.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

xequte

38607 Posts

Posted - Sep 17 2014 :  16:18:47  Show Profile  Reply
Also, there is now an ImageMagick demo and images:

\Demos\InputOutput\ImageMagick\ImageMagick.dpr

Or on our Demos page:

www.imageen.com/demos/index.html#InputOutput



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

xequte

38607 Posts

Posted - Dec 28 2020 :  17:27:30  Show Profile  Reply
Please note that we have newer versions of the ImageMagick plug-in (7.0.10) at:

https://www.imageen.com/download/

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: