Page MenuHomePhabricator

Installation doesn't detect ImageMagick on Windows platform
Closed, DeclinedPublic

Description

Author: johnish

Description:
Running WIMP (Windows XP Pro, IIS 5.1, MySql 4.1.3, PHP 4.3.11). Installation of
MediaWiki 1.4.0 does not correctly detect ImageMagick as the directories it
searches for are 'unix', also it is looking for a command called 'convert'.

Work around:
/config/index.php
approximate line: 304
add imagemagick installation directory *should be installed in a directory w/o
spaces
add .exe extension on to convert

$conf->ImageMagick = false;
$imcheck = array( "/usr/bin", "/usr/local/bin", "/sw/bin", "/opt/local/bin",
"C:/ImageMagick-5.5.7-Q16", "/ImageMagick-5.5.7-Q16" );
foreach( $imcheck as $dir ) {
$im = "$dir/convert.exe";
if( file_exists( $im ) ) {

		print "<li>Found ImageMagick: <tt>$im</tt>; image thumbnailing will be enabled

if you enable uploads.</li>\n";

		$conf->ImageMagick = $im;
		break;

}
}


Version: unspecified
Severity: normal
OS: Windows XP
Platform: PC

Details

Reference
bz1833

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:17 PM
bzimport set Reference to bz1833.
bzimport added a subscriber: Unknown Object (MLST).

"C:/ImageMagick-5.5.7-Q16" is version dependant, so it will still not
be found. It would be possible if imagemagick installed itself under
a version independant path such as c:\ImageMagick\ .

Windows users would have to enter the correct path manually.

epriestley changed the task status from Declined to Resolved by committing Unknown Object (Diffusion Commit).Mar 4 2015, 8:23 AM
epriestley added a commit: Unknown Object (Diffusion Commit).
Aklapper changed the task status from Resolved to Declined.Mar 4 2015, 11:48 AM
Aklapper claimed this task.