wand.version
— Version data¶
You can find the current version in the command line interface:
$ python -m wand.version
0.4.5
$ python -m wand.version --verbose
Wand 0.4.5
ImageMagick 6.7.7-6 2012-06-03 Q16 http://www.imagemagick.org
$ python -m wand.version --config | grep CC | cut -d : -f 2
gcc -std=gnu99 -std=gnu99
$ python -m wand.version --fonts | grep Helvetica
Helvetica
Helvetica-Bold
Helvetica-Light
Helvetica-Narrow
Helvetica-Oblique
$ python -m wand.version --formats | grep CMYK
CMYK
CMYKA
New in version 0.2.0: The command line interface.
New in version 0.2.2: The --verbose
/-v
option which also prints ImageMagick library
version for CLI.
New in version 0.4.1: The --fonts
, --formats
, & --config
option allows printing
additional information about ImageMagick library.
-
wand.version.
VERSION
= '0.4.5'¶ (
basestring
) The version string e.g.'0.1.2'
.Changed in version 0.1.9: Becomes string. (It was
tuple
before.)
-
wand.version.
VERSION_INFO
= (0, 4, 5)¶ (
tuple
) The version tuple e.g.(0, 1, 2)
.Changed in version 0.1.9: Becomes
tuple
. (It was string before.)
-
wand.version.
MAGICK_VERSION
= None¶ (
basestring
) The version string of the linked ImageMagick library. The exactly same string to the result ofGetMagickVersion()
function.Example:
'ImageMagick 6.7.7-6 2012-06-03 Q16 http://www.imagemagick.org'
New in version 0.2.1.
-
wand.version.
MAGICK_VERSION_INFO
= None¶ (
tuple
) The version tuple e.g.(6, 7, 7, 6)
ofMAGICK_VERSION
.New in version 0.2.1.
-
wand.version.
MAGICK_VERSION_NUMBER
= None¶ (
numbers.Integral
) The version number of the linked ImageMagick library.New in version 0.2.1.
-
wand.version.
MAGICK_RELEASE_DATE
= None¶ (
datetime.date
) The release date of the linked ImageMagick library. Equivalent to the result ofGetMagickReleaseDate()
function.New in version 0.2.1.
-
wand.version.
MAGICK_RELEASE_DATE_STRING
= None¶ (
basestring
) The date string e.g.'2012-06-03'
ofMAGICK_RELEASE_DATE_STRING
. This value is the exactly same string to the result ofGetMagickReleaseDate()
function.New in version 0.2.1.
-
wand.version.
QUANTUM_DEPTH
= None¶ (
numbers.Integral
) The quantum depth configuration of the linked ImageMagick library. One of 8, 16, 32, or 64.New in version 0.3.0.
-
wand.version.
configure_options
(pattern='*')¶ Queries ImageMagick library for configurations options given at compile-time.
Example: Find where the ImageMagick documents are installed:
>>> from wand.version import configure_options >>> configure_options('DOC*') {'DOCUMENTATION_PATH': '/usr/local/share/doc/ImageMagick-6'}
Parameters: pattern ( basestring
) – A term to filter queries against. Supports wildcard ‘*’ characters. Default patterns ‘*’ for all options.Returns: Directory of configuration options matching given pattern Return type: collections.defaultdict
-
wand.version.
fonts
(pattern='*')¶ Queries ImageMagick library for available fonts.
Available fonts can be configured by defining types.xml, type-ghostscript.xml, or type-windows.xml. Use
wand.version.configure_options()
to locate system search path, and resources article for defining xml file.Example: List all bold Helvetica fonts:
>>> from wand.version import fonts >>> fonts('*Helvetica*Bold*') ['Helvetica-Bold', 'Helvetica-Bold-Oblique', 'Helvetica-BoldOblique', 'Helvetica-Narrow-Bold', 'Helvetica-Narrow-BoldOblique']
Parameters: pattern ( basestring
) – A term to filter queries against. Supports wildcard ‘*’ characters. Default patterns ‘*’ for all options.Returns: Sequence of matching fonts Return type: collections.Sequence
-
wand.version.
formats
(pattern='*')¶ Queries ImageMagick library for supported formats.
Example: List supported PNG formats:
>>> from wand.version import formats >>> formats('PNG*') ['PNG', 'PNG00', 'PNG8', 'PNG24', 'PNG32', 'PNG48', 'PNG64']
Parameters: pattern ( basestring
) – A term to filter formats against. Supports wildcards ‘*’ characters. Default pattern ‘*’ for all formats.Returns: Sequence of matching formats Return type: collections.Sequence