Feature for testing the presence of imagemagick#

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

class sage.features.imagemagick.Convert#

Bases: sage.features.Executable

A Feature describing the presence of convert

EXAMPLES:

sage: from sage.features.imagemagick import Convert
sage: Convert().is_present()  # optional - imagemagick
FeatureTestResult('convert', True)
is_functional()#

Return whether command convert in the path is functional.

EXAMPLES:

sage: from sage.features.imagemagick import Convert
sage: Convert().is_functional()   # optional - imagemagick
FeatureTestResult('convert', True)
class sage.features.imagemagick.ImageMagick#

Bases: sage.features.join_feature.JoinFeature

A Feature describing the presence of ImageMagick

Currently, only the availability of convert is checked.

EXAMPLES:

sage: from sage.features.imagemagick import ImageMagick
sage: ImageMagick().is_present()  # optional - imagemagick
FeatureTestResult('imagemagick', True)
sage.features.imagemagick.all_features()#