Class Core_Image_Imagick
ImageMagick
http://www.php.net/manual/book.imagick.php
- Core_Image
- Core_Image_Imagick
Package: HostCMS\Core
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/image/imagick.php
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/image/imagick.php
Methods summary
public static
boolean
|
#
resizeImage( string $sourceFile, integer $maxWidth, integer $maxHeight, string $targetFile, integer $quality = NULL, integer $preserveAspectRatio = TRUE )
Пропорциональное масштабирование изображения |
public static
|
#
addWatermark( string $source, string $target, string $watermark, string $watermarkX = NULL, string $watermarkY = NULL )
Добавление watermark на изображение. Если файл watermark не существует, метод скопирует исходное изображение |
public static
mixed
|
|
public static
mixed
|
#
getImageType( string $path )
Get Image Type: 0 = UNKNOWN, 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF (orden de bytes intel), 8 = TIFF (orden de bytes motorola), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFF, 15 = WBMP, 16 = XBM, 17 = ICO, 18 = WEBP |
public static
string
|
Methods inherited from Core_Image
Properties summary
protected static
array
|
$_aFormats
Supported Image Formats https://imagemagick.org/script/formats.php |
#
array(
'GIF' => 1,
'JPEG' => 2,
'PNG' => 3,
'PNG8' => 3,
'PNG00' => 3,
'PNG24' => 3,
'PNG32' => 3,
'PNG48' => 3,
'PNG64' => 3,
'PSD' => 5,
'BMP' => 6,
'BMP2' => 6,
'BMP3' => 6,
'TIFF' => 7,
'JP2' => 10,
'JPT' => 10,
'J2C' => 10,
'J2K' => 10,
'WBMP' => 15,
'XBM' => 16,
'ICO' => 17,
'WEBP' => 18
)
|