Definition at line 19 of file Imagick.php.
|
| | canRead ($ext) |
| | Checks if extension support reading file type.
|
| | render ($input, $output=null) |
| | Main method for image handling.
|
| | __construct ($options=array()) |
| | graphics class constructor
|
| | canWrite ($ext) |
| | Checks if extension supports writing file type.
|
| | addBackground ($background) |
| | Background "action".
|
| | addCrop ($width, $height, $x=0, $y=0) |
| | Adds crop action.
|
| | addResize ($width, $height) |
| | Adds resize action.
|
| | addThumb ($width, $height) |
| | Adds thumb action.
|
| | addThumbfill ($width, $height, $centerX=50, $centerY=50) |
| | Adds thumb-fill action.
|
| | renderFinished () |
| | Called after rendering has finished.
|
| | optimizeImage ($filename) |
| | Opimizes final image through one of the optimization programs.
|
| | setQuality ($quality) |
| | Sets quality parameter.
|
| | getPageNumber () |
| | getPageNumber
|
|
| | crop ($width, $height, $x=0, $y=0) |
| | crop
|
| | resize ($width, $height) |
| | resize
|
| | thumb ($width, $height) |
| | thumb
|
| | thumbfill ($width, $height, $centerX=50, $centerY=50) |
| | thumbfill
|
| | load () |
| | load
|
| | save () |
| | save
|
| | setBackground () |
| | Generates background command.
|
| | getResizeFilter ($width, $height) |
| | Gets the resize filter depending on target size.
|
| | getImageSize () |
| | Determine size of input image.
|
| | escapeNumber ($number) |
| | Validates integers.
|
| | dimensions ($width, $height) |
| | Scales image dimensions.
|
| | processQueue () |
| | Process action queue.
|
| | lock () |
| | lock
|
| | unlock () |
| | unlock
|
| | obtainFormat ($fileName) |
| | Determines image format from file extension.
|
| | getQuality () |
| | Returns quality-index for current image format.
|
| | bypassTest ($width, $height, $x=0, $y=0) |
| | Tests if action would change current image.
|
| | bypass () |
| | Runs bypass (copies file)
|
|
| static | factory ($options=array()) |
| | graphics object factory
|
| static | which ($binary) |
| | Executes "which" command.
|
◆ canRead()
- Parameters
-
- Returns
- bool true if image type can be read
Reimplemented from Graphics.
Definition at line 32 of file Imagick.php.
◆ crop()
| crop |
( |
| $width, |
|
|
| $height, |
|
|
| $x = 0, |
|
|
| $y = 0 ) |
|
protected |
- Parameters
-
| mixed | $width,$height,$x,$y | |
- Returns
- void
Definition at line 43 of file Imagick.php.
◆ getImageSize()
◆ getResizeFilter()
| getResizeFilter |
( |
| $width, |
|
|
| $height ) |
|
protected |
this assumes that all images below 160px width or height will be thumbnails everything bigger gets resized slowly in better quality
- Returns
- int of the one of the filter constants
Definition at line 197 of file Imagick.php.
◆ load()
◆ render()
| render |
( |
| $input, |
|
|
| $output = null ) |
Starts actions, saves image, calls bypass if necessary.
- Parameters
-
| string | $input | input filename |
| string | $output | output filename |
- Returns
- void
Reimplemented from Graphics.
Definition at line 230 of file Imagick.php.
◆ resize()
| resize |
( |
| $width, |
|
|
| $height ) |
|
protected |
- Parameters
-
- Returns
- void
Definition at line 59 of file Imagick.php.
◆ save()
◆ setBackground()
- Returns
- string $background background part of the command string
Definition at line 176 of file Imagick.php.
◆ thumb()
| thumb |
( |
| $width, |
|
|
| $height ) |
|
protected |
- Parameters
-
- Returns
- void
Definition at line 84 of file Imagick.php.
◆ thumbfill()
| thumbfill |
( |
| $width, |
|
|
| $height, |
|
|
| $centerX = 50, |
|
|
| $centerY = 50 ) |
|
protected |
◆ $image
The documentation for this class was generated from the following file: