Feature for testing the presence of imagemagick

Currently we only check for the presence of convert or magick. When needed, other commands like magick-script, mogrify, identify, composite, montage, compare, etc. could be also checked in this module.

class sage.features.imagemagick.ImageMagick(*args, **kwds)[source]

Bases: JoinFeature

A Feature describing the presence of ImageMagick

Currently, only the availability of the magick (or convert) program is checked.

EXAMPLES:

sage: from sage.features.imagemagick import ImageMagick
sage: ImageMagick().is_present()  # optional - imagemagick
FeatureTestResult('imagemagick', True)
>>> from sage.all import *
>>> from sage.features.imagemagick import ImageMagick
>>> ImageMagick().is_present()  # optional - imagemagick
FeatureTestResult('imagemagick', True)
from sage.features.imagemagick import ImageMagick
ImageMagick().is_present()  # optional - imagemagick
class sage.features.imagemagick.Magick(*args, **kwds)[source]

Bases: Executable

A Feature describing the presence of magick or the deprecated convert.

EXAMPLES:

sage: from sage.features.imagemagick import Magick
sage: Magick().is_present()  # optional - imagemagick
FeatureTestResult('magick', True)
>>> from sage.all import *
>>> from sage.features.imagemagick import Magick
>>> Magick().is_present()  # optional - imagemagick
FeatureTestResult('magick', True)
from sage.features.imagemagick import Magick
Magick().is_present()  # optional - imagemagick
is_functional()[source]

Return whether command magick or convert in the path is functional.

EXAMPLES:

sage: from sage.features.imagemagick import Magick
sage: Magick().is_functional()   # optional - imagemagick
FeatureTestResult('magick', True)
>>> from sage.all import *
>>> from sage.features.imagemagick import Magick
>>> Magick().is_functional()   # optional - imagemagick
FeatureTestResult('magick', True)
from sage.features.imagemagick import Magick
Magick().is_functional()   # optional - imagemagick
sage.features.imagemagick.all_features()[source]