Imagick::writeImage

(PECL imagick 0.9.0-0.9.9)

Imagick::writeImageWrites an image to the specified filename

Описание

bool Imagick::writeImage ([ string $filename ] )
Внимание

К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.

Writes an image to the specified filename. If the filename parameter is NULL, the image is written to the filename set by Imagick::ReadImage() or Imagick::SetImageFilename().

Список параметров

filename

Возвращаемые значения

В случае успешной работы возвращает TRUE.

Коментарии

Автор:
$thumb = new Imagick();
$thumb->readImage('test.gif');
$thumb->writeImage('test.jpg');
$thumb->clear();
$thumb->destroy();
2008-04-19 14:12:35
http://php5.kiev.ua/manual/ru/function.imagick-writeimage.html
If you are trying to manipulate a uploaded file and then save the file all in the same request with Apache + mod_dav this will fail.
mod_dav puts a lock on the file during the request where the file is uploaded so trying to save the smallest file, e.g. 1kb will fail with a "Failed to allocate memory" error.
2011-05-24 04:47:01
http://php5.kiev.ua/manual/ru/function.imagick-writeimage.html

    Поддержать сайт на родительском проекте КГБ