fesan Posted February 19, 2011 Share Posted February 19, 2011 Hi.... I'm trying to dive into imagick. But I cant seem to load it. My web host has Imagic 6.3.X installed but from phpinfo() it does not show, and my scripts bring fatal error. Fatal error: Class 'Imagick' not found in... I have made my own php.ini and it lodes fine with .htaccess. <IfModule mod_suphp.c> suPHP_ConfigPath /home/2/f/fesan/ </IfModule> In php.ini i have added: ;My Extesions: [imagick] extension=imagick.so Does anyone know how to load imagick correctly to php? I'm on a linux server. Link to comment https://forums.phpfreaks.com/topic/228176-load-imagick/ Share on other sites More sharing options...
BlueSkyIS Posted February 19, 2011 Share Posted February 19, 2011 in case it is an alternative: when i use image magick, i exec() the image magick binaries installed on the system instead of using php extensions. <?php exec("/path/to/convert /path/to/somefile.ai -thumbnail 250x250 -unsharp 0x.5 /path/to/thumbnail2.png"); ?> Link to comment https://forums.phpfreaks.com/topic/228176-load-imagick/#findComment-1176780 Share on other sites More sharing options...
fesan Posted February 19, 2011 Author Share Posted February 19, 2011 Can i use all the functions from imagick with this exec()? Just to get me startet. How would you solve this code with exec()? <?php try { /*** a file that does not exist ***/ $image = '/file/does/not/exists.jpg'; /*** a new imagick object ***/ $im = new Imagick($image); echo 'Imagick'; } catch(Exception $e) { echo $e->getMessage(); } ?> Link to comment https://forums.phpfreaks.com/topic/228176-load-imagick/#findComment-1176815 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.