Cheetah
Public Member Functions | List of all members
Intervention\Image\AbstractDecoder Class Reference
Inheritance diagram for Intervention\Image\AbstractDecoder:
Intervention\Image\Gd\Decoder Intervention\Image\Imagick\Decoder

Public Member Functions

 initFromPath ($path)
 
 initFromBinary ($data)
 
 initFromGdResource ($resource)
 
 initFromImagick (\Imagick $object)
 
 __construct ($data=null)
 
 initFromUrl ($url)
 
 initFromStream ($stream)
 
 isGdResource ()
 
 isImagick ()
 
 isInterventionImage ()
 
 isSplFileInfo ()
 
 isSymfonyUpload ()
 
 isFilePath ()
 
 isUrl ()
 
 isStream ()
 
 isBinary ()
 
 isDataUrl ()
 
 isBase64 ()
 
 initFromInterventionImage ($object)
 
 init ($data)
 
 __toString ()
 

Detailed Description

Definition at line 5 of file AbstractDecoder.php.

Constructor & Destructor Documentation

◆ __construct()

Intervention\Image\AbstractDecoder::__construct (   $data = null)

Creates new Decoder with data

Parameters
mixed$data

Definition at line 51 of file AbstractDecoder.php.

Member Function Documentation

◆ __toString()

Intervention\Image\AbstractDecoder::__toString ( )

Decoder object transforms to string source data

Returns
string

Definition at line 303 of file AbstractDecoder.php.

◆ init()

Intervention\Image\AbstractDecoder::init (   $data)

Initiates new image from mixed data

Parameters
mixed$data
Returns
\Intervention\Image\Image

Definition at line 257 of file AbstractDecoder.php.

◆ initFromBinary()

Intervention\Image\AbstractDecoder::initFromBinary (   $data)
abstract

Initiates new image from binary data

Parameters
string$data
Returns
\Intervention\Image\Image

Reimplemented in Intervention\Image\Imagick\Decoder, and Intervention\Image\Gd\Decoder.

◆ initFromGdResource()

Intervention\Image\AbstractDecoder::initFromGdResource (   $resource)
abstract

Initiates new image from GD resource

Parameters
Resource$resource
Returns
\Intervention\Image\Image

Reimplemented in Intervention\Image\Imagick\Decoder, and Intervention\Image\Gd\Decoder.

◆ initFromImagick()

Intervention\Image\AbstractDecoder::initFromImagick ( \Imagick  $object)
abstract

Initiates new image from Imagick object

Parameters
Imagick$object
Returns
\Intervention\Image\Image

Reimplemented in Intervention\Image\Imagick\Decoder, and Intervention\Image\Gd\Decoder.

◆ initFromInterventionImage()

Intervention\Image\AbstractDecoder::initFromInterventionImage (   $object)

Initiates new Image from Intervention\Image\Image

Parameters
Image$object
Returns
\Intervention\Image\Image

Definition at line 228 of file AbstractDecoder.php.

◆ initFromPath()

Intervention\Image\AbstractDecoder::initFromPath (   $path)
abstract

Initiates new image from path in filesystem

Parameters
string$path
Returns
\Intervention\Image\Image

Reimplemented in Intervention\Image\Imagick\Decoder, and Intervention\Image\Gd\Decoder.

◆ initFromStream()

Intervention\Image\AbstractDecoder::initFromStream (   $stream)

Init from given stream

Parameters
$stream
Returns
\Intervention\Image\Image

Definition at line 79 of file AbstractDecoder.php.

◆ initFromUrl()

Intervention\Image\AbstractDecoder::initFromUrl (   $url)

Init from fiven URL

Parameters
string$url
Returns
\Intervention\Image\Image

Definition at line 62 of file AbstractDecoder.php.

◆ isBase64()

Intervention\Image\AbstractDecoder::isBase64 ( )

Determines if current source data is base64 encoded

Returns
boolean

Definition at line 217 of file AbstractDecoder.php.

◆ isBinary()

Intervention\Image\AbstractDecoder::isBinary ( )

Determines if current source data is binary data

Returns
boolean

Definition at line 190 of file AbstractDecoder.php.

◆ isDataUrl()

Intervention\Image\AbstractDecoder::isDataUrl ( )

Determines if current source data is data-url

Returns
boolean

Definition at line 205 of file AbstractDecoder.php.

◆ isFilePath()

Intervention\Image\AbstractDecoder::isFilePath ( )

Determines if current source data is file path

Returns
boolean

Definition at line 153 of file AbstractDecoder.php.

◆ isGdResource()

Intervention\Image\AbstractDecoder::isGdResource ( )

Determines if current source data is GD resource

Returns
boolean

Definition at line 99 of file AbstractDecoder.php.

◆ isImagick()

Intervention\Image\AbstractDecoder::isImagick ( )

Determines if current source data is Imagick object

Returns
boolean

Definition at line 113 of file AbstractDecoder.php.

◆ isInterventionImage()

Intervention\Image\AbstractDecoder::isInterventionImage ( )

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

Returns
boolean

Definition at line 123 of file AbstractDecoder.php.

◆ isSplFileInfo()

Intervention\Image\AbstractDecoder::isSplFileInfo ( )

Determines if current data is SplFileInfo object

Returns
boolean

Definition at line 133 of file AbstractDecoder.php.

◆ isStream()

Intervention\Image\AbstractDecoder::isStream ( )

Determines if current source data is a stream resource

Returns
boolean

Definition at line 177 of file AbstractDecoder.php.

◆ isSymfonyUpload()

Intervention\Image\AbstractDecoder::isSymfonyUpload ( )

Determines if current data is Symfony UploadedFile component

Returns
boolean

Definition at line 143 of file AbstractDecoder.php.

◆ isUrl()

Intervention\Image\AbstractDecoder::isUrl ( )

Determines if current source data is url

Returns
boolean

Definition at line 167 of file AbstractDecoder.php.


The documentation for this class was generated from the following file: