Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Stuck on ImageMagick during install.  (Read 9450 times)

0 Members and 1 Guest are viewing this topic.

AfternoonShift

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Stuck on ImageMagick during install.
« on: April 15, 2015, 12:09:04 am »

I'm running CentOS 6.6 w/ PHP 5.3.29.

I installed ImageMagick 6.9.1-1.

I select ImageMagick Version 6.9.1-(at: /usr/local/bin/) and click on "check path" but it doesn't seem to do anything besides set the "Path to ImageMagick": box back to "/".

i have a php script for testing ImageMagick - http://www.constantly.org/testing/testing.php and it looks like it runs correctly. What could be the problem?


Here's the code that i'm using to test.

<?php

echo "Using convert:<br>";
$array = array();
echo "<pre>";
// Replace input.jpg with the name of a jpg image in the same folder as this code and run it.
exec("convert input.jpg -thumbnail 500x500 output1.jpg 2>&1", $array);
print_r( $array );
echo"</pre>";

echo "Using /usr/local/bin/convert:<br>";
$array = array();
echo "<pre>";
// Replace input.jpg with the name of a jpg image in the same folder as this code and run it.
exec("/usr/local/bin/convert input.jpg -thumbnail 500x500 output2.jpg 2>&1", $array);
print_r( $array );
echo"</pre>";

?>
<img src="output1.jpg"><br>
<img src="output2.jpg">

<br />
<br />


<?php
system("/usr/local/bin/convert -version");
?>
<br />

<?php
$IM_version=shell_exec("/usr/local/bin/convert -version");
echo $IM_version
?>
<br />

<?php
exec("/usr/local/bin/convert -version",$out,$returnval);
print_r($out[0]);
?>
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Stuck on ImageMagick during install.
« Reply #1 on: April 17, 2015, 09:49:03 am »

Please select GD2 as resizing method during install. You can switch to ImageMagick later in the config. If it still doesn't work then, we can have a closer look.
Logged

AfternoonShift

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Stuck on ImageMagick during install.
« Reply #2 on: April 21, 2015, 01:35:02 am »

Thanks Andre.

DG2 works without issue.

With setting up another domain with a gallery, i ran into a slight workaround.. tho maybe you know why this is caused.

If i run setup with the ip address, it works. if i go with the domain, it fails.

http://173.208.245.178/~constantly/cpg15x/install.php?step=4   --- Imagemagick passes
http://constantly.org/cpg15x/install.php?step=4  --- Imagemagick fai
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.