DriverInfo
extends AbstractInfo
in package
Provide information and features supported by the Imagick graphics driver.
Tags
Table of Contents
Properties
- $colorProfilesSupported : bool|null
- $colorspaceConversionAvailable : bool|null
- $driverRawVersion : string
- $driverSemverVersion : string
- $engineRawVersion : string
- $engineSemverVersion : string
- $instance : static|NotSupportedException|null
- $supportedFormats : FormatList|null
Methods
- checkVersionIsSupported() : mixed
- Check if the current driver/engine version combination is supported.
- get() : static|null
- Get the Info instance for a specific driver.
- getDriverVersion() : mixed
- Get the version of the driver.
- getEngineVersion() : mixed
- Get the version of the library used by the driver.
- getSupportedFormats() : FormatList
- Get the list of supported file formats.
- hasFeature() : bool
- Check if the driver the features requested.
- isFormatSupported() : bool
- Check if a format is supported.
- isPaletteSupported() : bool
- Check if a palette is supported.
- requireFeature() : mixed
- Check if the driver has the features requested.
- requirePaletteSupport() : mixed
- Check if a palette is supported.
- __construct() : mixed
- buildSupportedFormats() : FormatList
- Build the list of supported file formats.
- checkFeature() : mixed
- Check if the driver has a specific feature.
- areColorProfilesSupported() : bool
- ImageMagick without the lcms delegate cannot handle profiles well.
- isColorspaceConversionAvailable() : bool
Properties
$colorProfilesSupported
private
bool|null
$colorProfilesSupported
= null
$colorspaceConversionAvailable
private
bool|null
$colorspaceConversionAvailable
= null
$driverRawVersion
private
string
$driverRawVersion
$driverSemverVersion
private
string
$driverSemverVersion
$engineRawVersion
private
string
$engineRawVersion
$engineSemverVersion
private
string
$engineSemverVersion
$instance
private
static static|NotSupportedException|null
$instance
$supportedFormats
private
FormatList|null
$supportedFormats
= null
Methods
checkVersionIsSupported()
Check if the current driver/engine version combination is supported.
public
checkVersionIsSupported() : mixed
Tags
get()
Get the Info instance for a specific driver.
public
static get([mixed $required = true ]) : static|null
Parameters
- $required : mixed = true
-
when the driver is not available: if FALSE the function returns NULL, if TRUE the driver throws a \Imagine\Exception\NotSupportedException
Tags
Return values
static|null —return NULL if the driver is not available and $required is FALSE
getDriverVersion()
Get the version of the driver.
public
getDriverVersion([mixed $raw = false ]) : mixed
Parameters
- $raw : mixed = false
-
if false the result will be in the format
. . , if TRUE the result will be the raw version
Tags
getEngineVersion()
Get the version of the library used by the driver.
public
getEngineVersion([mixed $raw = false ]) : mixed
Parameters
- $raw : mixed = false
-
if false the result will be in the format
. . , if TRUE the result will be the raw version
Tags
getSupportedFormats()
Get the list of supported file formats.
public
getSupportedFormats() : FormatList
Tags
Return values
FormatListhasFeature()
Check if the driver the features requested.
public
hasFeature(mixed $features) : bool
Parameters
- $features : mixed
-
The features to be checked (see the Info::FEATURE_... constants)
Tags
Return values
bool —returns TRUE if the driver supports all the specified features, FALSE otherwise
isFormatSupported()
Check if a format is supported.
public
isFormatSupported(mixed $format) : bool
Parameters
- $format : mixed
Tags
Return values
boolisPaletteSupported()
Check if a palette is supported.
public
isPaletteSupported(PaletteInterface $palette) : bool
Parameters
- $palette : PaletteInterface
Tags
Return values
boolrequireFeature()
Check if the driver has the features requested.
public
requireFeature(mixed $features) : mixed
Parameters
- $features : mixed
-
The features to be checked (see the Info::FEATURE_... constants)
Tags
requirePaletteSupport()
Check if a palette is supported.
public
requirePaletteSupport(PaletteInterface $palette) : mixed
Parameters
- $palette : PaletteInterface
Tags
__construct()
protected
__construct() : mixed
Tags
buildSupportedFormats()
Build the list of supported file formats.
protected
buildSupportedFormats() : FormatList
Tags
Return values
FormatListcheckFeature()
Check if the driver has a specific feature.
protected
checkFeature(mixed $feature) : mixed
Parameters
- $feature : mixed
-
The feature to be checked (see the Info::FEATURE_... constants)
Tags
areColorProfilesSupported()
ImageMagick without the lcms delegate cannot handle profiles well.
private
areColorProfilesSupported() : bool
This detection is needed because there is no way to directly check for lcms.
Return values
boolisColorspaceConversionAvailable()
private
isColorspaceConversionAvailable() : bool