Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • Image
  • Image_Driver
  • Image_GD_Driver
  • Image_ImageMagick_Driver

Class Image_Driver

Image API driver.

$Id: Image.php 3769 2008-12-15 00:48:56Z zombor $

Direct known subclasses

Image_GD_Driver, Image_ImageMagick_Driver

Abstract
Package: Image
Copyright: (c) 2007-2008 Kohana Team
License: http://kohanaphp.com/license.html
Author: Kohana Team
Located at phundament/p3extensions/components/image/Image_Driver.php

Methods summary

public boolean
# execute( array $actions )

Executes a set of actions, defined in pairs.

Executes a set of actions, defined in pairs.

Parameters

$actions
array
actions

Returns

boolean
protected
# sanitize_geometry( array & $geometry )

Sanitize and normalize a geometry array based on the temporary image width and height. Valid properties are: width, height, top, left.

Sanitize and normalize a geometry array based on the temporary image width and height. Valid properties are: width, height, top, left.

Parameters

$geometry
array
geometry properties
abstract protected array
# properties( )

Return the current width and height of the temporary image. This is mainly needed for sanitizing the geometry.

Return the current width and height of the temporary image. This is mainly needed for sanitizing the geometry.

Returns

array
width, height
abstract public boolean
# process( string $image, array $actions, string $dir, string $file )

Process an image with a set of actions.

Process an image with a set of actions.

Parameters

$image
string
image filename
$actions
array
actions to execute
$dir
string
destination directory path
$file
string
destination filename

Returns

boolean
abstract public boolean
# flip( integer $direction )

Flip an image. Valid directions are horizontal and vertical.

Flip an image. Valid directions are horizontal and vertical.

Parameters

$direction
integer
direction to flip

Returns

boolean
abstract public boolean
# crop( array $properties )

Crop an image. Valid properties are: width, height, top, left.

Crop an image. Valid properties are: width, height, top, left.

Parameters

$properties
array
new properties

Returns

boolean
abstract public boolean
# resize( array $properties )

Resize an image. Valid properties are: width, height, and master.

Resize an image. Valid properties are: width, height, and master.

Parameters

$properties
array
new properties

Returns

boolean
abstract public boolean
# rotate( integer $amount )

Rotate an image. Valid amounts are -180 to 180.

Rotate an image. Valid amounts are -180 to 180.

Parameters

$amount
integer
amount to rotate

Returns

boolean
abstract public boolean
# sharpen( integer $amount )

Sharpen and image. Valid amounts are 1 to 100.

Sharpen and image. Valid amounts are 1 to 100.

Parameters

$amount
integer
amount to sharpen

Returns

boolean

Magic methods summary

Properties summary

protected mixed $image
#
protected mixed $tmp_image
#
protected array $errors
#
Phundament App Class Reference API documentation generated by ApiGen 2.8.0