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 ImageMagickCurrently, only the availability of the
magick
(orconvert
) 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)
- class sage.features.imagemagick.Magick(*args, **kwds)[source]#
Bases:
Executable
A
Feature
describing the presence ofmagick
or the deprecatedconvert
.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)
- is_functional()[source]#
Return whether command
magick
orconvert
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)