PHP 클래스 Instafilter\Image

This image class allows for the basic manipulation of images and the addition of any number of instagram-style filters Based on the FuelPHP 1.x Image class http://fuelphp.com
파일 보기 프로젝트 열기: fbf/instafilter

공개 프로퍼티들

프로퍼티 타입 설명
$image
$image_temp

보호된 프로퍼티들

프로퍼티 타입 설명
$accepted_extensions
$configuration
$im_path
$imagick
$queued_actions

공개 메소드들

메소드 설명
__construct ( array $configuration = [] )
__destruct ( )
_apply_filter ( $filter )
apply_filter ( $filter )
exec ( string $program, string $params, boolean $passthru = false ) : mixed Executes the specified imagemagick executable and returns the output.
image ( )
imagick ( $set = null )
load ( $filename, $configuration = [] )
resize ( $width, $height = null, $keepar = true, $pad = false )
run_queue ( boolean $clear = null ) Runs all queued actions on the loaded image.
save ( $output )
sizes ( )

보호된 메소드들

메소드 설명
_queue ( string $function ) Queues a function to run at a later time.
_resize ( $width, $height = null, $keepar = true, $pad = true )
check_extension ( string $filename, boolean $writevar = true ) : boolean Checks if the extension is accepted by this library, and if its valid sets the $this->image_extension variable.
convert_number ( string $input, boolean $x = null ) : integer Converts percentages, negatives, and other values to absolute integers.
debug ( ) Used for debugging image output.

메소드 상세

__construct() 공개 메소드

public __construct ( array $configuration = [] )
$configuration array

__destruct() 공개 메소드

public __destruct ( )

_apply_filter() 공개 메소드

public _apply_filter ( $filter )

_queue() 보호된 메소드

Queues a function to run at a later time.
protected _queue ( string $function )
$function string The name of the function to be ran, without the leading _

_resize() 보호된 메소드

protected _resize ( $width, $height = null, $keepar = true, $pad = true )

apply_filter() 공개 메소드

public apply_filter ( $filter )

check_extension() 보호된 메소드

Checks if the extension is accepted by this library, and if its valid sets the $this->image_extension variable.
protected check_extension ( string $filename, boolean $writevar = true ) : boolean
$filename string
$writevar boolean Decides if the extension should be written to $this->image_extension
리턴 boolean

convert_number() 보호된 메소드

Converts percentages, negatives, and other values to absolute integers.
protected convert_number ( string $input, boolean $x = null ) : integer
$input string
$x boolean Determines if the number relates to the x-axis or y-axis.
리턴 integer The converted number, usable with the image being edited.

debug() 보호된 메소드

Used for debugging image output.
protected debug ( )

exec() 공개 메소드

Executes the specified imagemagick executable and returns the output.
public exec ( string $program, string $params, boolean $passthru = false ) : mixed
$program string The name of the executable.
$params string The parameters of the executable.
$passthru boolean Returns the output if false or pass it to browser.
리턴 mixed Either returns the output or returns nothing.

image() 공개 메소드

public image ( )

imagick() 공개 메소드

public imagick ( $set = null )

load() 공개 정적인 메소드

public static load ( $filename, $configuration = [] )

resize() 공개 메소드

public resize ( $width, $height = null, $keepar = true, $pad = false )

run_queue() 공개 메소드

Runs all queued actions on the loaded image.
public run_queue ( boolean $clear = null )
$clear boolean Decides if the queue should be cleared once completed.

save() 공개 메소드

public save ( $output )

sizes() 공개 메소드

public sizes ( )

프로퍼티 상세

$accepted_extensions 보호되어 있는 프로퍼티

protected $accepted_extensions

$configuration 보호되어 있는 프로퍼티

protected $configuration

$im_path 보호되어 있는 프로퍼티

protected $im_path

$image 공개적으로 프로퍼티

public $image

$image_temp 공개적으로 프로퍼티

public $image_temp

$imagick 보호되어 있는 프로퍼티

protected $imagick

$queued_actions 보호되어 있는 프로퍼티

protected $queued_actions