Making ImageMagick revision number easily accessable
Making ImageMagick revision number easily accessable
Currently the only place where I found the revision number is #define MagickLibVersionNumber. It would be nice to have the full version with the revision (6.3.5-9) in an integer form.
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
Re: Making ImageMagick revision number easily accessable
Did you look at MagickGetVersion()? It returns the version number.
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: Making ImageMagick revision number easily accessable
But the revision number is contained in this #define:MagickGetVersion()? It returns the version number.
Code: Select all
#define MagickLibVersionNumber 6,3,5,9
Pete
Re: Making ImageMagick revision number easily accessable
You want the minor revision number then-- 6.3.5-9 rather than 6.3.5 which is returned by MagickGetVersion(). That information is not readily available now other than to use the MagickLibVersionNumber define.
Re: Making ImageMagick revision number easily accessable
Yes, I noticed the same thing. Thats why I asked for an easy way to get -9 part. Using the MagickLibVersionNumber with macros led me to macro hackery which eventually didnt compile on VC.magick wrote:You want the minor revision number then-- 6.3.5-9 rather than 6.3.5 which is returned by MagickGetVersion(). That information is not readily available now other than to use the MagickLibVersionNumber define.
I would like to support all new features in Imagick as soon as they appear and currently I got AC_TRY_COMPILE in config.m4. In a long run that might not be optimal since I will propably need those checks in future versions also and that would fill the config.m4 with AC_TRY_COMPILE and AC_TRY_RUN tests.
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org