Hello:
I have a wiki running MediaWiki 1.18alpha. ImageMagick 6.6.6-5 is enabled on the server, and so far images on the wiki have been scaled and thumbnailed correctly.
However, I have a number of animated GIFs, and they are not resized properly. In other words, [[Image:Foo.gif|#px]] will cause:
(1) a missing image sign to appear in placed of scaled animations where #px is *smaller* than the original dimensions of the animation (2) a working animation (albeit scaled on the client's side, which is not ideal) for animations where #px is greater than or equal to the original dimensions.
See http://knowino.org/w/index.php?title=File_talk:Test.gif&oldid=5330 for an example.
(By the way, running "php maintenance/eval.php" and entering "print $wgMaxAnimatedGifArea" yields 20000000, after I upped the limit from 12500000. The animation is definitely under that size---a mere 100x100x2-frames = total area of 20000.)
I would like all GIF-animation scaling to be performed by the server. Any ideas on why this isn't happening?
Cheers, Tom.
On Sat, Dec 25, 2010 at 4:17 AM, Thomas Larsen larsen.t@basicprogramming.org wrote:
(2) a working animation (albeit scaled on the client's side, which is not ideal) for animations where #px is greater than or equal to the original dimensions.
Files are only downscaled server-side, not upscaled. I imagine this is a feature, not a bug. The relevant code is in includes/media/Bitmap.php:
# Don't make an image bigger than the source $params['physicalWidth'] = $params['width']; $params['physicalHeight'] = $params['height'];
if ( $params['physicalWidth'] >= $srcWidth ) { $params['physicalWidth'] = $srcWidth; $params['physicalHeight'] = $srcHeight; return true; }
Hello:
On 12/26/10, Benjamin Lees emufarmers@gmail.com wrote:
Files are only downscaled server-side, not upscaled. I imagine this is a feature, not a bug. The relevant code is in includes/media/Bitmap.php: [snip]
Thanks, Benjamin, for that clarification. It turns out I was able to fix the underlying issue (GIF animations not being downsized properly by the server) by setting
$wgMaxShellMemory = 0;
in "LocalSettings.php". (0 means "no limit"; presumably a value that was high enough would also work.) See http://knowino.org/w/index.php?title=User_talk:Thomas_Larsen&oldid=5421#... for an explanation.
Cheers, Tom.
mediawiki-l@lists.wikimedia.org