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.ExecutableA
Featuredescribing the presence ofconvertEXAMPLES:
sage: from sage.features.imagemagick import Convert sage: Convert().is_present() # optional - imagemagick FeatureTestResult('convert', True)
- is_functional()¶
Return whether command
convertin 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.JoinFeatureA
Featuredescribing the presence ofImageMagickCurrently, only the availability of
convertis checked.EXAMPLES:
sage: from sage.features.imagemagick import ImageMagick sage: ImageMagick().is_present() # optional - imagemagick FeatureTestResult('imagemagick', True)
- sage.features.imagemagick.all_features()¶