Phalcon image
  NOTE
 All classes are prefixed with Phalcon
   Image\Adapter\AbstractAdapter 
 Source on GitHub
  -  Namespace 
-  Uses  - Phalcon\Image\Enum
- Phalcon\Image\Exception
 
-  Extends 
-  Implements 
All image adapters must use this class
 Properties
 /**
 * @var string
 */
protected $file;
/**
 * Image height
 *
 * @var int
 */
protected $height;
/**
 * @var mixed|null
 */
protected $image;
/**
 * Image mime type
 *
 * @var string
 */
protected $mime;
/**
 * @var string
 */
protected $realpath;
/**
 * Image type
 *
 * Driver dependent
 *
 * @var int
 */
protected $type;
/**
 * Image width
 *
 * @var int
 */
protected $width;
Methods
 public function background( string $color, int $opacity = int ): AdapterInterface;
public function blur( int $radius ): AdapterInterface;
public function crop( int $width, int $height, int $offsetX = null, int $offsetY = null ): AdapterInterface;
public function flip( int $direction ): AdapterInterface;
public function getHeight(): int;
public function getImage();
public function getMime(): string;
public function getRealpath(): string;
public function getType(): int;
public function getWidth(): int;
public function mask( AdapterInterface $mask ): AdapterInterface;
public function pixelate( int $amount ): AdapterInterface;
public function reflection( int $height, int $opacity = int, bool $fadeIn = bool ): AdapterInterface;
public function render( string $extension = null, int $quality = int ): string;
public function resize( int $width = null, int $height = null, int $master = static-constant-access ): AdapterInterface;
public function rotate( int $degrees ): AdapterInterface;
public function save( string $file = null, int $quality = int ): AdapterInterface;
public function sharpen( int $amount ): AdapterInterface;
public function text( string $text, mixed $offsetX = bool, mixed $offsetY = bool, int $opacity = int, string $color = string, int $size = int, string $fontFile = null ): AdapterInterface;
public function watermark( AdapterInterface $watermark, int $offsetX = int, int $offsetY = int, int $opacity = int ): AdapterInterface;
protected function checkHighLow( int $value, int $min = int, int $max = int ): int;
Image\Adapter\AdapterInterface 
 Source on GitHub
  -  Namespace 
-  Uses 
-  Extends 
-  Implements 
Interface for Phalcon\Image\Adapter classes
 Methods
 public function background( string $color, int $opacity = int ): AdapterInterface;
public function blur( int $radius ): AdapterInterface;
public function crop( int $width, int $height, int $offsetX = null, int $offsetY = null ): AdapterInterface;
public function flip( int $direction ): AdapterInterface;
public function mask( AdapterInterface $mask ): AdapterInterface;
public function pixelate( int $amount ): AdapterInterface;
public function reflection( int $height, int $opacity = int, bool $fadeIn = bool ): AdapterInterface;
public function render( string $extension = null, int $quality = int ): string;
public function resize( int $width = null, int $height = null, int $master = static-constant-access ): AdapterInterface;
public function rotate( int $degrees ): AdapterInterface;
public function save( string $file = null, int $quality = int ): AdapterInterface;
public function sharpen( int $amount ): AdapterInterface;
public function text( string $text, int $offsetX = int, int $offsetY = int, int $opacity = int, string $color = string, int $size = int, string $fontFile = null ): AdapterInterface;
public function watermark( AdapterInterface $watermark, int $offsetX = int, int $offsetY = int, int $opacity = int ): AdapterInterface;
Image\Adapter\Gd
 Source on GitHub
  -  Namespace 
-  Uses  - Phalcon\Image\Enum
- Phalcon\Image\Exception
 
-  Extends AbstractAdapter
 
-  Implements 
This file is part of the Phalcon Framework.
 (c) Phalcon Team team@phalcon.io
 For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.
 Methods
 public function __construct( string $file, int $width = null, int $height = null );
public function __destruct();
public function getVersion(): string;
protected function processBackground( int $red, int $green, int $blue, int $opacity ): void;
protected function processBlur( int $radius ): void;
protected function processCreate( int $width, int $height );
protected function processCrop( int $width, int $height, int $offsetX, int $offsetY ): void;
protected function processFlip( int $direction ): void;
protected function processMask( AdapterInterface $mask );
protected function processPixelate( int $amount ): void;
protected function processReflection( int $height, int $opacity, bool $fadeIn ): void;
protected function processRender( string $extension, int $quality );
protected function processResize( int $width, int $height ): void;
protected function processRotate( int $degrees ): void;
protected function processSave( string $file, int $quality ): bool;
protected function processSharpen( int $amount ): void;
protected function processText( string $text, mixed $offsetX, mixed $offsetY, int $opacity, int $red, int $green, int $blue, int $size, string $fontFile = null ): void;
protected function processWatermark( AdapterInterface $watermark, int $offsetX, int $offsetY, int $opacity ): void;
Image\Adapter\Imagick
 Source on GitHub
  -  Namespace 
-  Uses  - Imagick
- ImagickDraw
- ImagickDrawException
- ImagickException
- ImagickPixel
- ImagickPixelException
- Phalcon\Image\Enum
- Phalcon\Image\Exception
 
-  Extends AbstractAdapter
 
-  Implements 
Phalcon\Image\Adapter\Imagick
 Image manipulation support. Resize, rotate, crop etc.
 $image = new \Phalcon\Image\Adapter\Imagick("upload/test.jpg");
$image->resize(200, 200)->rotate(90)->crop(100, 100);
if ($image->save()) {
    echo "success";
}
Properties
 /**
 * @var int
 */
protected $version = ;
Methods
 public function __construct( string $file, int $width = null, int $height = null );
public function __destruct();
public function liquidRescale( int $width, int $height, int $deltaX = int, int $rigidity = int ): AbstractAdapter;
public function setResourceLimit( int $type, int $limit ): void;
protected function processBackground( int $red, int $green, int $blue, int $opacity ): void;
protected function processBlur( int $radius ): void;
protected function processCrop( int $width, int $height, int $offsetX, int $offsetY ): void;
protected function processFlip( int $direction ): void;
protected function processMask( AdapterInterface $image ): void;
protected function processPixelate( int $amount ): void;
protected function processReflection( int $height, int $opacity, bool $fadeIn ): void;
protected function processRender( string $extension, int $quality ): string;
protected function processResize( int $width, int $height ): void;
protected function processRotate( int $degrees ): void;
protected function processSave( string $file, int $quality ): void;
protected function processSharpen( int $amount ): void;
protected function processText( string $text, mixed $offsetX, mixed $offsetY, int $opacity, int $red, int $green, int $blue, int $size, string $fontFile = null ): void;
protected function processWatermark( AdapterInterface $image, int $offsetX, int $offsetY, int $opacity ): void;
Image\Enum
 Source on GitHub
  -  Namespace 
-  Uses 
-  Extends 
-  Implements 
This file is part of the Phalcon Framework.
 (c) Phalcon Team team@phalcon.io
 For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.
 Constants
 const AUTO = 4;
const HEIGHT = 3;
const HORIZONTAL = 11;
const INVERSE = 5;
const NONE = 1;
const PRECISE = 6;
const TENSILE = 7;
const VERTICAL = 12;
const WIDTH = 2;
Image\Exception
 Source on GitHub
  -  Namespace 
-  Uses 
-  Extends \Exception
 
-  Implements 
Exceptions thrown in Phalcon\Image will use this class
 Image\ImageFactory
 Source on GitHub
  -  Namespace 
-  Uses  - Phalcon\Factory\AbstractFactory
- Phalcon\Image\Adapter\AdapterInterface
 
-  Extends AbstractFactory
 
-  Implements 
This file is part of the Phalcon Framework.
 (c) Phalcon Team team@phalcon.io
 For the full copyright and license information, please view the LICENSE.txt file that was distributed with this source code.
 Methods
 public function __construct( array $services = [] );
public function load( mixed $config ): AdapterInterface;
public function newInstance( string $name, string $file, int $width = null, int $height = null ): AdapterInterface;
protected function getExceptionClass(): string;
protected function getServices(): array;