HumHub Documentation (unofficial)

DriverInfo extends AbstractInfo
in package

Provide information and features supported by the Imagick graphics driver.

Tags
since
1.3.0

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

$driverSemverVersion

private string $driverSemverVersion

$engineSemverVersion

private string $engineSemverVersion

Methods

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
see
Info::get()
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
see
Info::getDriverVersion()

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
see
Info::getEngineVersion()

hasFeature()

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
see
Info::hasFeature()
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
see
Info::isFormatSupported()
Return values
bool

requireFeature()

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
see
Info::requireFeature()

checkFeature()

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
see
AbstractInfo::checkFeature()

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
bool

isColorspaceConversionAvailable()

private isColorspaceConversionAvailable() : bool
Return values
bool

        
On this page

Search results