Page 1 of 1
how to know if you are on a Q8 or Q16 version of ImageMagick
Posted: 2010-07-22T19:51:59-07:00
by xt5
hi,
I want to know an easy way to know if the version that call a custom filter (dynamic module) is a Q8 or Q16 version of ImageMagick, that way I could make a module compatible with both versions (I'm using MagickCore).
If it its not posible to know it in runtime, is there a way (a macro or so) to know it easily on compile time?
Re: how to know if you are on a Q8 or Q16 version of ImageMa
Posted: 2010-07-22T21:36:09-07:00
by fmw42
The only way I know is to find its directory. For example on my system, I built a custom filter using MagickFilterKit-1.0.0
I can find where it gets stored as:
/usr/local/lib/ImageMagick-6.6.3/modules-Q16/filters
So the directory says which Q version it is.
That is the best I can offer until Magick or someone else who knows more can answer
Re: how to know if you are on a Q8 or Q16 version of ImageMa
Posted: 2010-07-23T08:17:27-07:00
by el_supremo
Re: how to know if you are on a Q8 or Q16 version of ImageMa
Posted: 2010-07-23T09:27:50-07:00
by fmw42
I also forgot to mention the recent addition of
convert -list module
at least for command line mode. It lists all the coders and filters.
From the changelog
2010-06-28 6.6.2-10 Cristy <quetzlzacatenango@image...>
The -list module option lists image coders and image filters.
I presume if you are on Q8 and there are only Q16 filters, that you will not see any filters listed. But I have not tested that.
Re: how to know if you are on a Q8 or Q16 version of ImageMa
Posted: 2010-07-23T23:52:17-07:00
by xt5
thanks Pete, this what I was after for.
also thanks fmw42 for the workarounds!