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.
Imagick::writeImage
(PECL imagick 0.9.0-0.9.9)
Imagick::writeImage — Écrit une image dans le fichier spécifié
Description
bool Imagick::writeImage
([ string
$filename
] )
Écrit une image dans un fichier spécifié. Si le paramètre
filename vaut NULL, l'image sera écrite dans le fichier
défini par Imagick::ReadImage() ou Imagick::SetImageFilename().
Liste de paramètres
-
filename -
Valeurs de retour
Returns TRUE on success.
icinagle at gmail dot com
23-May-2011 06:47
http://aotd.ru
19-Apr-2008 04:12
$thumb = new Imagick();
$thumb->readImage('test.gif');
$thumb->writeImage('test.jpg');
$thumb->clear();
$thumb->destroy();
