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_ImageMagick_Driver

ImageMagick Image Driver.

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

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

Methods summary

public
# __construct( array $config )

Attempts to detect the ImageMagick installation directory.

Attempts to detect the ImageMagick installation directory.

Parameters

$config
array
configuration

Throws

Kohana_Exception
public boolean
# process( string $image, array $actions, string $dir, string $file, mixed $render = FALSE )

Creates a temporary image and executes the given actions. By creating a temporary copy of the image before manipulating it, this process is atomic.

Creates a temporary image and executes the given actions. By creating a temporary copy of the image before manipulating it, this process is atomic.

Parameters

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

Returns

boolean
public boolean
# crop( array $prop )

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

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

Parameters

$prop
array
new properties

Returns

boolean
public boolean
# flip( integer $dir )

Flip an image. Valid directions are horizontal and vertical.

Flip an image. Valid directions are horizontal and vertical.

Parameters

$dir
integer
direction to flip

Returns

boolean
public boolean
# resize( array $prop )

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

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

Parameters

$prop
array
new properties

Returns

boolean
public boolean
# rotate( integer $amt )

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

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

Parameters

$amt
integer
amount to rotate

Returns

boolean
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
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

Methods inherited from Image_Driver

execute(), sanitize_geometry()

Magic methods summary

Properties summary

protected string $dir
#
protected string $ext
#
protected mixed $tmp_image
#

Properties inherited from Image_Driver

$errors, $image

Phundament App Class Reference API documentation generated by ApiGen 2.8.0