Table Of Contents

Previous topic

< Abstract class Phalcon\Image

Next topic

Class Phalcon\Image\Adapter\GD >

Abstract class Phalcon\Image\Adapter

implements Phalcon\Image\AdapterInterface

Base class for Phalcon\Image adapters

Methods

public string getRealPath ()

Returns the real path of the image file

public int getWidth ()

Returns the width of images

public int getHeight ()

Returns the height of images

public int getType ()

Returns the type of images

public string getMime ()

Returns the mime of images

public resource getImage ()

Returns the image of images

public Phalcon\Image\Adapter resize ([unknown $width], [unknown $height], [unknown $master])

Resize the image to the given size. Either the width or the height can be omitted and the image will be resized proportionally.

public Phalcon\Image\Adapter liquidRescale (unknown $width, unknown $height, [unknown $delta_x], [unknown $rigidity])

This method scales the images using liquid rescaling method. Only support Imagick

public Phalcon\Image\Adapter crop (unknown $width, unknown $height, [unknown $offset_x], [unknown $offset_y])

Crop an image to the given size. Either the width or the height can be omitted and the current width or height will be used.

public Phalcon\Image\Adapter rotate (unknown $degrees)

Rotate the image by a given amount.

public Phalcon\Image\Adapter flip (unknown $direction)

Flip the image along the horizontal or vertical axis.

public Phalcon\Image\Adapter sharpen (unknown $amount)

Sharpen the image by a given amount.

public Phalcon\Image\Adapter reflection ([unknown $height], [unknown $opacity], [unknown $fade_in])

Add a reflection to an image. The most opaque part of the reflection will be equal to the opacity setting and fade out to full transparent. Alpha transparency is preserved.

public Phalcon\Image\AdapterInterface watermark (unknown $watermark, [unknown $offset_x], [unknown $offset_y], [unknown $opacity])

Add a watermark to an image with a specified opacity. Alpha transparency will be preserved.

public Phalcon\Image\Adapter text (unknown $text, [unknown $offset_x], [unknown $offset_y], [unknown $opacity], [unknown $color], [unknown $size], [unknown $fontfile])

Add a text to an image with a specified opacity.

public Phalcon\Image\Adapter mask (unknown $mask)

Composite one image onto another

public Phalcon\Image\Adapter background (unknown $color, [unknown $quality])

Set the background color of an image. This is only useful for images with alpha transparency.

public Phalcon\Image\Adapter blur ([unknown $radius])

Blur image

public Phalcon\Image\Adapter pixelate ([unknown $amount])

Pixelate image

public boolean save ([unknown $file], [unknown $quality])

Save the image. If the filename is omitted, the original image will be overwritten.

public Phalcon\Image\Adapter render ([unknown $type], [unknown $quality])

Render the image and return the binary string.

abstract protected _resize (unknown $width, unknown $height)

...

abstract protected _liquidRescale (unknown $width, unknown $height, unknown $delta_x, unknown $regidity)

...

abstract protected _crop (unknown $width, unknown $height, unknown $offset_x, unknown $offset_y)

...

abstract protected _rotate (unknown $degrees)

...

abstract protected _flip (unknown $direction)

...

abstract protected _sharpen (unknown $amount)

...

abstract protected _reflection (unknown $height, unknown $opacity, unknown $fade_in)

...

abstract protected _watermark (unknown $watermark, unknown $offset_x, unknown $offset_y, unknown $opacity)

...

abstract protected _text (unknown $text, unknown $offset_x, unknown $offset_y, unknown $opacity, unknown $r, unknown $g, unknown $b, unknown $size, unknown $fontfile)

...

abstract protected _mask (unknown $mask)

...

abstract protected _background (unknown $r, unknown $g, unknown $b, unknown $opacity)

...

abstract protected _blur (unknown $radius)

...

abstract protected _pixelate (unknown $amount)

...

abstract protected _save (unknown $file, unknown $quality)

...

abstract protected _render (unknown $type, unknown $quality)

...