Documentation

Decoder extends AbstractDecoder
in package

Table of Contents

Properties

$data  : mixed
Buffer of input data

Methods

__construct()  : mixed
Creates new Decoder with data
__toString()  : string
Decoder object transforms to string source data
init()  : Image
Initiates new image from mixed data
initFromBinary()  : Image
Initiates new image from binary data
initFromGdResource()  : Image
Initiates new image from GD resource
initFromImagick()  : Image
Initiates new image from Imagick object
initFromInterventionImage()  : Image
Initiates new Image from Intervention\Image\Image
initFromPath()  : Image
Initiates new image from path in filesystem
initFromStream()  : Image
Init from given stream
initFromUrl()  : Image
Init from given URL
isBase64()  : bool
Determines if current source data is base64 encoded
isBinary()  : bool
Determines if current source data is binary data
isDataUrl()  : bool
Determines if current source data is data-url
isFilePath()  : bool
Determines if current source data is file path
isGdResource()  : bool
Determines if current source data is GD resource
isImagick()  : bool
Determines if current source data is Imagick object
isInterventionImage()  : bool
Determines if current source data is Intervention\Image\Image object
isSplFileInfo()  : bool
Determines if current data is SplFileInfo object
isStream()  : bool
Determines if current source data is a stream resource
isSymfonyUpload()  : bool
Determines if current data is Symfony UploadedFile component
isUrl()  : bool
Determines if current source data is url
decodeDataUrl()  : string
Parses and decodes binary image data from data-url
removeAnimation()  : Imagick
Turns object into one frame Imagick object by removing all frames except first

Properties

Methods

__construct()

Creates new Decoder with data

public __construct([mixed $data = null ]) : mixed
Parameters
$data : mixed = null

__toString()

Decoder object transforms to string source data

public __toString() : string
Return values
string

init()

Initiates new image from mixed data

public init(mixed $data) : Image
Parameters
$data : mixed
Return values
Image

initFromBinary()

Initiates new image from binary data

public initFromBinary(mixed $binary) : Image
Parameters
$binary : mixed
Return values
Image

initFromGdResource()

Initiates new image from GD resource

public initFromGdResource(resource $resource) : Image
Parameters
$resource : resource
Return values
Image

initFromImagick()

Initiates new image from Imagick object

public initFromImagick(Imagick $object) : Image
Parameters
$object : Imagick
Return values
Image

initFromInterventionImage()

Initiates new Image from Intervention\Image\Image

public initFromInterventionImage(Image $object) : Image
Parameters
$object : Image
Return values
Image

initFromPath()

Initiates new image from path in filesystem

public initFromPath(string $path) : Image
Parameters
$path : string
Return values
Image

initFromUrl()

Init from given URL

public initFromUrl(string $url) : Image
Parameters
$url : string
Return values
Image

isBase64()

Determines if current source data is base64 encoded

public isBase64() : bool
Return values
bool

isBinary()

Determines if current source data is binary data

public isBinary() : bool
Return values
bool

isDataUrl()

Determines if current source data is data-url

public isDataUrl() : bool
Return values
bool

isFilePath()

Determines if current source data is file path

public isFilePath() : bool
Return values
bool

isGdResource()

Determines if current source data is GD resource

public isGdResource() : bool
Return values
bool

isImagick()

Determines if current source data is Imagick object

public isImagick() : bool
Return values
bool

isInterventionImage()

Determines if current source data is Intervention\Image\Image object

public isInterventionImage() : bool
Return values
bool

isSplFileInfo()

Determines if current data is SplFileInfo object

public isSplFileInfo() : bool
Return values
bool

isStream()

Determines if current source data is a stream resource

public isStream() : bool
Return values
bool

isSymfonyUpload()

Determines if current data is Symfony UploadedFile component

public isSymfonyUpload() : bool
Return values
bool

isUrl()

Determines if current source data is url

public isUrl() : bool
Return values
bool

decodeDataUrl()

Parses and decodes binary image data from data-url

private decodeDataUrl(string $data_url) : string
Parameters
$data_url : string
Return values
string

removeAnimation()

Turns object into one frame Imagick object by removing all frames except first

private removeAnimation(Imagick $object) : Imagick
Parameters
$object : Imagick
Return values
Imagick

        
On this page

Search results