downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Imagick::writeImageFile> <Imagick::whiteThresholdImage
[edit] Last updated: Fri, 25 May 2012

view this page in

Imagick::writeImage

(PECL imagick 0.9.0-0.9.9)

Imagick::writeImage指定した名前で画像を書き込む

説明

bool Imagick::writeImage ([ string $filename ] )

指定した名前で画像を書き込みます。filename パラメータが NULL の場合は、 Imagick::ReadImage() あるいは Imagick::SetImageFilename() で設定した名前で書き込みます。

パラメータ

filename

返り値

成功した場合に TRUE を返します。



add a note add a note User Contributed Notes Imagick::writeImage
icinagle at gmail dot com 24-May-2011 03:47
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.
http://aotd.ru 19-Apr-2008 01:12
$thumb = new Imagick();
$thumb->readImage('test.gif');
$thumb->writeImage('test.jpg');
$thumb->clear();
$thumb->destroy();

 
show source | credits | stats | sitemap | contact | advertising | mirror sites