Property | Type | Description | |
---|---|---|---|
$image | |||
$image_temp |
Property | Type | Description | |
---|---|---|---|
$accepted_extensions | |||
$configuration | |||
$im_path | |||
$imagick | |||
$queued_actions |
Method | Description | |
---|---|---|
__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 ( ) |
Method | Description | |
---|---|---|
_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. |
protected _resize ( $width, $height = null, $keepar = true, $pad = true ) |
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. |
return | mixed | Either returns the output or returns nothing. |