Class ImageMagick (namespace Nette)
Manipulation with large images using ImageMagick.
Public Method Summary | |
---|---|
ImageMagick |
__construct
(string $file, [string &$format =
NULL ])
Wraps image file.
|
void |
__destruct
()
Delete temporary files.
|
ImageMagick |
crop
(int $left, int $top, int $width, int $height)
Crops image.
|
int |
getHeight
()
Returns image height.
|
resource |
Returns image GD resource.
|
int |
getWidth
()
Returns image width.
|
ImageMagick |
resize
(mixed $newWidth, mixed $newHeight, [int $flags =
0 ])
Resizes image.
|
bool |
Saves image to the file.
|
Methods Inherited From Image |
---|
__construct(), calculateSize(), crop(), fromBlank(), fromFile(), fromString(), getHeight(), getImageResource(), getWidth(), place(), resize(), rgb(), save(), send(), setImageResource(), sharpen(), toString(), __call(), __toString() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Constant Summary |
---|
Constants Inherited From Image |
---|
EMPTY_GIF, ENLARGE, GIF, JPEG, PNG, STRETCH |
Variable Summary | ||||
---|---|---|---|---|
static string | $path | '' |
line 44 path to ImageMagick library |
|
static string | $tempDir |
|
line 47 |
Method Details | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 68 __constructpublic ImageMagick __construct (string $file, [string &$format = Wraps image file.
|
|||||||||||||||||||||
line 252 __destructpublic void __destruct () Delete temporary files.
|
|||||||||||||||||||||
line 153 croppublic ImageMagick crop (int $left, int $top, int $width, int $height) Crops image.
|
|||||||||||||||||||||
line 96 getHeightpublic int getHeight () Returns image height.
|
|||||||||||||||||||||
line 107 getImageResourcepublic resource getImageResource () Returns image GD resource.
|
|||||||||||||||||||||
line 85 getWidthpublic int getWidth () Returns image width.
|
|||||||||||||||||||||
line 132 resizepublic ImageMagick resize (mixed $newWidth, mixed $newHeight, [int $flags = Resizes image.
|
|||||||||||||||||||||
line 176 savepublic bool save ([string $file = Saves image to the file.
|