Hey guys,
I'm running MediaWiki 1.4.4, on FreeBSD 4.8 with PHP 5.0.4, Apache 1.3.33 and MySQL 4.1.12. It's largely the stock install. I changed a few options here and there, but nothing out of the ordinary.
So here's the problem. I upload an image, and it works fine. Then I whip up a quick page which includes the following wiki markup:
[[Image:Corwin-field.jpg|right|thumb|200px|Image caption]]
It should display the image at 200px, with a border around it, right- aligned, right? Well, all it does is show it right-aligned, at uploaded size, with no border or caption at all. If you want to see what I mean, check it out:
http://weswiki.broadlatitude.com/index.php/Corwin_Stadium
I've tried tweaking everything I can think of (I had older versions of Apache and PHP running, and upgraded those. I even upgraded mysql to a more recent version). The weird thing is that I installed MedaWiki on the -exact- same environment (PHP 5.0.4, Apache 1.3.33, MySQL 4.1.12) except on Mac OS X (only that's my workstation, not my server :) It works fine, strangely enough.
Has anyone experienced this behavior? Any suggestions on how to fix it?
Thanks!
- Matt
Matt Johnson wrote:
I'm running MediaWiki 1.4.4, on FreeBSD 4.8 with PHP 5.0.4, Apache 1.3.33 and MySQL 4.1.12. It's largely the stock install. I changed a few options here and there, but nothing out of the ordinary.
So here's the problem. I upload an image, and it works fine. Then I whip up a quick page which includes the following wiki markup:
[[Image:Corwin-field.jpg|right|thumb|200px|Image caption]]
It should display the image at 200px, with a border around it, right- aligned, right? Well, all it does is show it right-aligned, at uploaded size, with no border or caption at all. If you want to see what I mean, check it out:
Make sure image resizing support is turned on in your LocalSettings.php. This may require building GD support in PHP, or setting up ImageMagick.
(Make sure that you add /usr/local/bin to the PATH if trying to using ImageMagick installed from ports; you may need to use putenv() in your LocalSettings.php)
-- brion vibber (brion @ pobox.com)
On Jun 2, 2005, at 8:41 PM, Brion Vibber wrote:
Make sure image resizing support is turned on in your LocalSettings.php. This may require building GD support in PHP, or setting up ImageMagick.
(Make sure that you add /usr/local/bin to the PATH if trying to using ImageMagick installed from ports; you may need to use putenv() in your LocalSettings.php)
Hmm... I checked my two platforms and the working platform (OS X) had JPEG support enabled where the FreeBSD platform did not. I recompiled PHP with JPEG enabled (imagejpeg() functions work etc.) -- no luck. I guess I'll try installing ImageMagick (although it means letting ports install lots of other stuff I don't need...)
Thanks for the suggestion.
- Matt
On 03/06/05, Matt Johnson mdjohnson@wesleyan.edu wrote:
Hmm... I checked my two platforms and the working platform (OS X) had JPEG support enabled where the FreeBSD platform did not. I recompiled PHP with JPEG enabled (imagejpeg() functions work etc.) -- no luck. I guess I'll try installing ImageMagick (although it means letting ports install lots of other stuff I don't need...)
To be clear on what it is that's being suggested here, MediaWiki needs either the GD library or ImageMagick to actually generate thumbnailed images on the server. Without one or the other set up correctly (and the appropriate options such as "$wgUseImageResize=true;" in LocalSettings.php) the images will just remain their original size.
mediawiki-l@lists.wikimedia.org