Config
in package
This class contains the top-level libvips control methods.
Tags
Table of Contents
Properties
- $logger : LoggerInterface|null
- The logger instance.
Methods
- atLeast() : bool
- Is this at least libvips major.minor[.patch]?
- cacheSetMax() : void
- Set the maximum number of operations to hold in the libvips operation cache.
- cacheSetMaxFiles() : void
- Set the maximum number of open files cached operations can use.
- cacheSetMaxMem() : void
- Set the maximum amount of memory to allow cached operations to use, in bytes.
- concurrencySet() : void
- Set the size of the pools of worker threads vips uses for image evaluation.
- getLogger() : LoggerInterface|null
- Gets a logger.
- setLogger() : void
- Sets a logger. This can be handy for debugging. For example:
- version() : string
- Gets the libvips version number as a string of the form MAJOR.MINOR.MICRO, for example "8.6.1".
Properties
$logger
The logger instance.
private
static LoggerInterface|null
$logger
= null
Methods
atLeast()
Is this at least libvips major.minor[.patch]?
public
static atLeast(int $x, int $y[, int $z = 0 ]) : bool
Parameters
- $x : int
-
Major component.
- $y : int
-
Minor component.
- $z : int = 0
-
Patch component.
Return values
bool —true
if at least libvips major.minor[.patch]; otherwise, false
.
cacheSetMax()
Set the maximum number of operations to hold in the libvips operation cache.
public
static cacheSetMax(int $value) : void
Parameters
- $value : int
-
The maximum number of operations to cache.
cacheSetMaxFiles()
Set the maximum number of open files cached operations can use.
public
static cacheSetMaxFiles(int $value) : void
Parameters
- $value : int
-
The maximum number of open files cached operations can use.
cacheSetMaxMem()
Set the maximum amount of memory to allow cached operations to use, in bytes.
public
static cacheSetMaxMem(int $value) : void
Parameters
- $value : int
-
The maximum amount of memory cached operations can hold, in bytes.
concurrencySet()
Set the size of the pools of worker threads vips uses for image evaluation.
public
static concurrencySet(int $value) : void
Parameters
- $value : int
-
The size of the pools of worker threads vips uses for image evaluation.
getLogger()
Gets a logger.
public
static getLogger() : LoggerInterface|null
Return values
LoggerInterface|null —The logger or null.
setLogger()
Sets a logger. This can be handy for debugging. For example:
public
static setLogger(LoggerInterface $logger) : void
Vips\Config::setLogger(new Vips\Logger);
Parameters
- $logger : LoggerInterface
version()
Gets the libvips version number as a string of the form MAJOR.MINOR.MICRO, for example "8.6.1".
public
static version() : string