2008/12/12 David Gerard <[email protected]>:
> 2008/12/12 Sean McAfee <[email protected]>:

>> Yes - this happened to me when I accidentally compiled ImageMagick
>> without png support.

> ooh, that sounds a likely candidate. The ImageMagick on those boxes
> *shouldn't* have gotten recompiled or updated at any stage (crusty old
> OS well inside multiple firewalls), but it's possible. I'll switch off
> ImageMagick and use the inbuilt GD and see if it behaves better.


Doesn't appear to help.

The relevant settings lines are:

In LocalSettings.php (for this wiki):

        $wgFileExtensions = array( 'png', 'gif', 'svg', 'jpg', 'jpeg',
'ppt', 'doc', 'pdf', 'xls' );
        $wgVerifyMimeType = false;
        $wgStrictFileExtensions = false;
        $wgCheckFileExtensions = false;

In engineersLocalSettings.php (our own wiki), where I've just switched off PNGs:

#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";

I even did mv /usr/bin/convert /usr/bin/conver2 to make sure it
couldn't use ImageMagick.

Results the same - old PNGs are thumbnailed and re-thumbnailed fine,
new PNGs won't thumbnail at all and warn of possible malicious code.

# cat /etc/redhat-release
CentOS release 4.5 (Final)
# php --version
PHP 5.1.6 (cli) (built: Jun 17 2007 11:37:40)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Any further ideas?


- d.

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to