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

search for in the

Imagick::contrastImage> <Imagick::compositeImage
[edit] Last updated: Fri, 25 May 2012

view this page in

Imagick::__construct

(PECL imagick 2.0.0)

Imagick::__constructLe constructeur Imagick

Description

Imagick::__construct ( mixed $files )

Crée une instance Imagick pour une image spécifique ou pour un jeu d'images.

Liste de paramètres

files

Le chemin jusqu'à l'image à charger, ou un tableau de chemins. Ils peuvent inclure des jokers dans les noms des fichiers, ou peuvent être des URLs.

Valeurs de retour

Retourne un nouvel objet Imagick, en cas de succès.

Erreurs / Exceptions

Lance une exception ImagickException si une erreur survient.



add a note add a note User Contributed Notes Imagick::__construct
martin at lks dot com 23-May-2012 10:29
If you are using windows imagemagick, at leat in my case, you have to include the full path of the file, including the 'c:' at the beginning. If you don't know for sure the way that the filename is going to come, you can use realpath() function to normalize it:

<?php
    $incoming_file
= '/Users/John/Desktop/file_loco.jpg';
   
$img = new Imagick(realpath($incoming_file));
   
// realpath() will convert '/Users/John/Desktop/file_loco.jpg' to 'C:\Users\John\Desktop\file_loco.jpg'
    // and ImageMagick will have no trouble when loading
?>

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