Hi.
I'm having trouble getting image resizing to work. I can upload and view
images just fine, but resizing and thumbs do not work.
e.g. [[Image:a_largish_image.png | 30px |]] does nothing for me. The
image shows up fine, just not small. The largish images I'm trying are
only 300x100 or so - not large enough to cause memory or timeout issues,
but large enough so that a resize operation's results should be
unambiguous.
I have:
- Searched through the old mails on this list looking for answers. I've
looked at everything with "ImageM*" and "resize". Nothing has helped
me
so far.
- Googled extensively to no avail.
- Made sure that ImageMagic works just fine from PHP w/o MediaWiki. I can
resize an image just fine using exec() to call convert on files.
Specifically, I can use exec() to make convert resize files.
- Made sure that the following lines appear in my LocalSettings.php
$wgDisableUploads = false;
$wgUseImageResize = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/local/bin/convert";
The convert binary is set to be executable by the web server's group.
- Made sure that exec() is not forbidden in my php.conf file. Nothing
exec-related appears to be locked down at all and, as I mentioned before,
I can call exec() on convert just fine using PHP without MediaWiki.
- Made sure I'm not running in PHP's safe mode.
- Attempted to comment out $wgUseImageMagick which I believe forces
MediaWiki to use GD, which I have installed. This does not help.
- Attempted to use .gif, .jpeg and .png files in my testing. They all
behave identically (none of them work).
- Made sure that the wiki directory and all its subdirectories are
accessible by Apache via chown -R web_person:apache_group /path/to/wiki.
- I am using an access file on the wiki directory to keep outsiders out of
the wiki, if that makes any difference. It hasn't had an effect on the
rest of the wiki functionality as far as I can tell.
Installed versions:
GD 2.0.33
Apache 2.0.54
ImageMagick 6.2.3-4
MediaWiki 1.4.5
MySql 4.1.12
PHP 5.0.4
zlib 1.2.3
libpng 1.2.8
jpeg library version 6b
I'm running on Fedora Core 4 (2.6.11-1.1369_FC4). X/KDE/Gnome/etc were
not installed. Packages listed above were installed from source tarballs.
Everything else about the wiki works wonderfully. I can edit, upload
images, etc. with no problems whatsoever. It's a great piece of software.
I'm just having this one little problem.
I'm new to PHP, so I'm not so familiar with troubleshooting it.
Any ideas?
Thanks for your help,
Dana Robinson
Show replies by date