Welcome Guest, Not a member yet? Register   Sign In
Anyone managed to install ImageMagick with Linux, PHP Version 5.5.9-1ubuntu4.7
#1

(This post was last modified: 04-16-2015, 12:31 AM by John_Betong.)

The following works fine:
PHP Code:
 $thumbnail = new Imagick($pix);
 
 $wid 128;
 
 $thumbnail->thumbnailImage$wid);
 
 $thumbnail->enhanceImage();

 
 $thumbnail->sharpenimage(1,1,Imagick::CHANNEL_ALL); //$radius, $sigma, $channel);
 
 $ok $thumbnail->writeImage'thumbs/'.$thb ); 




Problem - cannot use CodeIgniter  Image Library: 
The $config['library_path'] is incorrect.



Tried the following without success:
PHP Code:
// PHP Version 5.5.9-1ubuntu4.7
$paths = array 
(
 
 '/opt/local/bin',
 
 '/opt/local/bin/',
 
 '/usr/bin/mogrify',
 
 '/usr/bin/mogrify/',
 
 '/usr/bin/convert',
 
 '/etc/php5/apache2/conf.d/'              // 20-imagick.ini
 
 '/etc/php5/apache2/conf.d/20-imagick.ini'// extension=imagick.so
 
 '/etc/ImageMagick',
 
 '/etc/ImageMagick/',
 
 '/usr/include/php5/ext/imagick',
 
 '/var/lib/dpkg/info/php5-imagick.prerm',
);
$path $paths[0..10]); // tried all 10 options :-(
echo '$path --> ' .$path .'<br />';

$this->load->library('image_lib');

$config['image_library'] = 'ImageMagick'// $config['image_library']     = 'imagick';
$config['library_path']    = $path;
...
...
if ( ! 
$this->image_lib->resize())
{
   echo 
'<h1 style="color:red">' .$this->image_lib->display_errors() .'</h1>';
}
// Output
 
  Image processing failed
 
  Please verify that your server supports the chosen protocol 
   
and that the path to your image library is correct
Reply


Messages In This Thread
Anyone managed to install ImageMagick with Linux, PHP Version 5.5.9-1ubuntu4.7 - by John_Betong - 04-16-2015, 12:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB