ImageProcessingResult

Decorator around ImageInfo.

The main benefit over ImageInfo is

  • Can have different values due to processing instructions being set, or "noScale" option being set.
  • Can be filled with arbitrary information without the file path being accessed at all.
  • The result object can be used to retrieve virtual or possible values, so the file does not need to exist (yet).
Internal

because this might only make sense if it used in the local environment.

Table of Contents

Methods

__construct()  : mixed
createFromImageInfo()  : self
getExtension()  : string
getHeight()  : int<0, max>
getRealPath()  : string
getWidth()  : int<0, max>
isFile()  : bool
toLegacyArray()  : array{0: int<0, max>, 1: int<0, max>, 2: string, 3: string}

Methods

__construct()

public __construct(string $filePath, int $width, int $height[, ImageInfo|null $imageInfo = null ]) : mixed
Parameters
$filePath : string
$width : int
$height : int
$imageInfo : ImageInfo|null = null

createFromImageInfo()

public static createFromImageInfo(ImageInfo $imageInfo) : self
Parameters
$imageInfo : ImageInfo
Return values
self

getExtension()

public getExtension() : string
Return values
string

getHeight()

public getHeight() : int<0, max>
Return values
int<0, max>

getRealPath()

public getRealPath() : string
Return values
string

getWidth()

public getWidth() : int<0, max>
Return values
int<0, max>

isFile()

public isFile() : bool
Return values
bool

toLegacyArray()

public toLegacyArray() : array{0: int<0, max>, 1: int<0, max>, 2: string, 3: string}
Return values
array{0: int<0, max>, 1: int<0, max>, 2: string, 3: string}

        
On this page

Search results