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

@cartalot

I am running Ubuntu 16.04.1 on both the locahost and server and for some unknown reason the ImageMagick path is different?



To find ImageMagick Path:

Code:
  <?php define( 'LOCALHOST', 'localhost'===$_SERVER['SERVER_NAME'] );?>

  <?php system("type convert");?>
  # LOCALHOST
    convert is /usr/local/bin/convert
  # ONLINE  
    convert is /usr/bin/convert

ImageMagick CodeIgniter Settings:
  $config["image_library"] = "imagemagick"
  $config["library_path"]  = LOCALHOST ? "/usr/local/bin/" : "/usr/bin/"
 
ImageMagick Info
  <?php exec("/usr/local/bin/convert -version", $outByRef, $returnvalByRef)

  <?php print_r($outByRef)
  Array
  (
      [0] => Version: ImageMagick 7.0.2-7 Q16 x86_64 2016-08-11 http://www.imagemagick.org
      [1] => Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
      [2] => License: http://www.imagemagick.org/script/license.php
      [3] => Features: Cipher DPC HDRI OpenMP
      [4] => Delegates (built-in): bzlib djvu fontconfig freetype gvc jbig jng jpeg lcms lqr lzma openexr png tiff wmf x xml zlib
  )
Reply


Messages In This Thread
RE: [SOLVED] CI 3.1.0 ImageMagick not working - by John_Betong - 08-26-2016, 11:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB