wand.version
— Version data
You can find the current version in the command line interface:
$ python -m wand.version
0.4.4
$ python -m wand.version --verbose
Wand 0.4.4
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.4' (
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, 4) (
tuple
) The version tuple e.g.(0, 1, 2)
.Changed in version 0.1.9: Becomes
tuple
. (It was string before.)
-
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