IMAGE_GRAY
IMAGE_GRAY = 1
Colorspace constants
Imagick adapter class
$adjust : \Pop\Image\Adjust\AdjustInterface
Image adjust object
$draw : \Pop\Image\Draw\DrawInterface
Image draw object
$effect : \Pop\Image\Effect\EffectInterface
Image effect object
$filter : \Pop\Image\Filter\FilterInterface
Image filter object
$layer : \Pop\Image\Layer\LayerInterface
Image layer object
$type : \Pop\Image\Type\TypeInterface
Image type object
setAdjust(\Pop\Image\Adjust\AdjustInterface $adjust) : \Pop\Image\Adapter\AbstractAdapter
Set the image adjust object
\Pop\Image\Adjust\AdjustInterface | $adjust |
setDraw(\Pop\Image\Draw\DrawInterface $draw) : \Pop\Image\Adapter\AbstractAdapter
Set the image draw object
\Pop\Image\Draw\DrawInterface | $draw |
setEffect(\Pop\Image\Effect\EffectInterface $effect) : \Pop\Image\Adapter\AbstractAdapter
Set the image effect object
\Pop\Image\Effect\EffectInterface | $effect |
setFilter(\Pop\Image\Filter\FilterInterface $filter) : \Pop\Image\Adapter\AbstractAdapter
Set the image filter object
\Pop\Image\Filter\FilterInterface | $filter |
setLayer(\Pop\Image\Layer\LayerInterface $layer) : \Pop\Image\Adapter\AbstractAdapter
Set the image layer object
\Pop\Image\Layer\LayerInterface | $layer |
setType(\Pop\Image\Type\TypeInterface $type) : \Pop\Image\Adapter\AbstractAdapter
Set the image type object
\Pop\Image\Type\TypeInterface | $type |
load(string $name = null) : \Pop\Image\Adapter\Imagick
Load the image resource from the existing image file
string | $name |
loadFromString(string $data, string $name = null) : \Pop\Image\Adapter\Imagick
Load the image resource from data
string | $data | |
string | $name |
create(integer $width = null, integer $height = null, string $name = null) : \Pop\Image\Adapter\Imagick
Create a new image resource
integer | $width | |
integer | $height | |
string | $name |
createIndex(integer $width = null, integer $height = null, string $name = null) : \Pop\Image\Adapter\Imagick
Create a new image resource
integer | $width | |
integer | $height | |
string | $name |
resizeToWidth(integer $w) : \Pop\Image\Adapter\Imagick
Resize the image object to the width parameter passed
integer | $w |
resizeToHeight(integer $h) : \Pop\Image\Adapter\Imagick
Resize the image object to the height parameter passed
integer | $h |
resize(integer $px) : \Pop\Image\Adapter\Imagick
Resize the image object, allowing for the largest dimension to be scaled to the value of the $px argument.
integer | $px |
scale(float $scale) : \Pop\Image\Adapter\Imagick
Scale the image object, allowing for the dimensions to be scaled proportionally to the value of the $scl argument.
float | $scale |
crop(integer $w, integer $h, integer $x, integer $y) : \Pop\Image\Adapter\Imagick
Crop the image object to a image whose dimensions are based on the value of the $wid and $hgt argument. The optional $x and $y arguments allow for the adjustment of the crop to select a certain area of the image to be cropped.
integer | $w | |
integer | $h | |
integer | $x | |
integer | $y |
cropThumb(integer $px, integer $offset = null) : \Pop\Image\Adapter\Imagick
Crop the image object to a square image whose dimensions are based on the value of the $px argument. The optional $offset argument allows for the adjustment of the crop to select a certain area of the image to be cropped.
integer | $px | |
integer | $offset |
rotate(integer $degrees, \Pop\Image\Color\ColorInterface $bgColor = null) : \Pop\Image\Adapter\Imagick
Rotate the image object
integer | $degrees | |
\Pop\Image\Color\ColorInterface | $bgColor |
flip() : \Pop\Image\Adapter\Imagick
Method to flip the image over the x-axis
flop() : \Pop\Image\Adapter\Imagick
Method to flip the image over the y-axis
adjust() : \Pop\Image\Adjust\AdjustInterface
Get the image adjust object
filter() : \Pop\Image\Filter\FilterInterface
Get the image filter object
layer() : \Pop\Image\Layer\LayerInterface
Get the image layer object
draw() : \Pop\Image\Draw\DrawInterface
Get the image draw object
effect() : \Pop\Image\Effect\EffectInterface
Get the image effect object
type() : \Pop\Image\Type\TypeInterface
Get the image type object
convert(string $to) : \Pop\Image\Adapter\Imagick
Convert the image object to another format
string | $to |
outputToHttp(integer $quality = 100, string $to = null, boolean $download = false, boolean $sendHeaders = true, array $headers = array()) : void
Output the image object directly to HTTP
integer | $quality | |
string | $to | |
boolean | $download | |
boolean | $sendHeaders | |
array | $headers |
createColor(\Pop\Image\Color\ColorInterface $color = null, integer $alpha = 100) : \ImagickPixel
Create and return a color.
\Pop\Image\Color\ColorInterface | $color | |
integer | $alpha |
addImage(mixed $image, integer $delay = null) : \Pop\Image\Adapter\Imagick
Add image to the image resource
mixed | $image | |
integer | $delay |
rebuildImages(\Imagick $images) : \Pop\Image\Adapter\Imagick
Get images
\Imagick | $images |
setResolution(integer $x, integer $y = null) : \Pop\Image\Adapter\Imagick
Set the image resolution
integer | $x | |
integer | $y |
setImageColorspace(integer $colorspace) : \Pop\Image\Adapter\Imagick
Set the image colorspace
integer | $colorspace |
setCompression(integer $compression) : \Pop\Image\Adapter\Imagick
Set the image compression
integer | $compression |
setImageFilter(integer $filter) : \Pop\Image\Adapter\Imagick
Set the image filter
integer | $filter |
setImageBlur(float $blur) : \Pop\Image\Adapter\Imagick
Set the image blur
float | $blur |
resizeImage(integer $width, integer $height, integer $filter = null, integer $blur = null) : \Pop\Image\Adapter\Imagick
Resize image, checking for multiple frames
integer | $width | |
integer | $height | |
integer | $filter | |
integer | $blur |
cropImage(integer $width, integer $height, integer $x, integer $y) : \Pop\Image\Adapter\Imagick
Crop image, checking for multiple frames
integer | $width | |
integer | $height | |
integer | $x | |
integer | $y |
cropThumbnailImage(integer $width, integer $height) : \Pop\Image\Adapter\Imagick
Crop image, checking for multiple frames
integer | $width | |
integer | $height |