Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] CI 3.1.0 ImageMagick not working
#1

(This post was last modified: 07-29-2016, 09:22 PM by John_Betong. Edit Reason: formatting and closing if statement )

Platform: Ubuntu 16.0.4.1
CI Ver:  3.1.0

Can someone please check the following:

file: system/libraries/Image_lib.php

PHP Code:
// __LINE__ 890
// exec() might be disabled
if (function_usable('exec'))
{
  
#@exec($cmd, $output, $retval);
 
 if(0):
    
# ORIGINAL SCRIPT NOT WORKING 
 
   @exec($cmd$output$retval);
 
 else:
 
   # THIS WORKS OK
 
   @exec('/usr/bin/convert ' 
 
         .$this->full_src_path 
          
.' -thumbnail ' .$this->width.'x'.$this->height .' '
 
         .$this->full_dst_path 
          
.' 2>&1'$retval);       
        $retval 
count($retval);
  endif; 
     
}#endif (function_usable('exec')) 

I was also unable to get ImageMagick working in previous versions and had to use PHP exec('convert'... );
Reply


Messages In This Thread
[SOLVED] CI 3.1.0 ImageMagick not working - by John_Betong - 07-27-2016, 11:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB