News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Stuck on ImageMagick during install.

Started by AfternoonShift, April 15, 2015, 12:09:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AfternoonShift

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]);
?>

ΑndrĂ©

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.

AfternoonShift

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