Definition at line 19 of file Imagick.php.
Public Member Functions | |
| canRead ($ext) | |
| Checks if extension support reading file type. | |
| render ($input, $output=null) | |
| Main method for image handling. | |
| Public Member Functions inherited from Graphics | |
| __construct ($options=[]) | |
| 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 | |
Protected Member Functions | |
| 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 | |
| autoOrient () | |
| autoOrient | |
| setBackground () | |
| Generates background command. | |
| getResizeFilter ($width, $height) | |
| Gets the resize filter depending on target size. | |
| getImageSize () | |
| Determine size of input image. | |
| Protected Member Functions inherited from Graphics | |
| 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). | |
Protected Attributes | |
| $image = null | |
| image | |
| Protected Attributes inherited from Graphics | |
| $input | |
| Input filename. | |
| $output | |
| Output filename. | |
| $format | |
| Output format. | |
| $outputLockFp = null | |
| $otherRender = false | |
| otherRender is set to true if another render process has already locked file | |
| $queue = [] | |
| Action queue array. | |
| $size = [] | |
| Image size array(width, height). | |
| $background | |
| Image background string. | |
| $quality = '' | |
| Image quality string. | |
| $optimize | |
| Optimize output images. | |
| $optimizers | |
| List of optimizer binaries. | |
| $limits = [] | |
| limits (mainly for imagemagick and graphicsmagick) | |
| $inputFormat | |
| Input image format. | |
| $outputFormat | |
| Output image format. | |
| $bypass = true | |
| Process bypass bool. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Graphics | |
| static | factory ($options=[]) |
| graphics object factory | |
| static | which ($binary) |
| Executes "which" command. | |
|
protected |
Definition at line 177 of file Imagick.php.
| canRead | ( | $ext | ) |
| string | $ext | file extension |
Reimplemented from Graphics.
Definition at line 32 of file Imagick.php.
|
protected |
|
protected |
Reimplemented from Graphics.
Definition at line 250 of file Imagick.php.
|
protected |
this assumes that all images below 160px width or height will be thumbnails everything bigger gets resized slowly in better quality
Definition at line 238 of file Imagick.php.
|
protected |
| render | ( | $input, | |
| $output = null ) |
Starts actions, saves image, calls bypass if necessary.
| string | $input | input filename |
| string | $output | output filename |
Reimplemented from Graphics.
Definition at line 271 of file Imagick.php.
|
protected |
|
protected |
|
protected |
Definition at line 217 of file Imagick.php.
|
protected |
|
protected |
|
protected |
Definition at line 24 of file Imagick.php.