Last modified: 2011-07-17 05:17:34 UTC
During the resizing of GIF's with a transparant colour, the transparancy is lost.
Your server or our server? (URL?) Using ImageMagick or GD? What version of ImageMagick or GD? Can you provide an example image?
> Your server or our server? (URL?) Mine, I am running mine in log on only mode, so I can't give you access > Using ImageMagick or GD? Both GD and Imagemagick are installed on my system, my LocalSettings.php says: $wgUseImageResize = true; # $wgUseImageMagick = true; # $wgImageMagickConvertCommand = "/usr/bin/convert"; > What version of ImageMagick or GD? imagemagick 6.2.2.3 gd 2.0.32 > Can you provide an example image? Sure, see attachment.
Created attachment 565 [details] A GIF picture with transparancy
Created attachment 566 [details] Same GIF image, after being "resized" to 64px The files size is actually the same as the original (64x64px), but the same occurs with the 32x32px version.
You're using GD, which is notoriously unreliable. Try uncommenting the ImageMagick lines, and confirm the path to the executable.
Created attachment 610 [details] Resized with ImageMagick to 40px
I have changed LocalSettings.php to: [...] ## To enable image uploads, make sure the 'images' directory ## is writable, then uncomment this: $wgDisableUploads = false; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; [...] # which convert /usr/bin/convert So I suppose I use ImageMagick now. The result is now slightly better, but still not as it should be. BTW, I am running 1.4.5 now.
I have a similar problem on my wiki. When a .gif image is resized, the black parts of it are converted into a transparent background, so the resized image looks pretty bad against a white/light background. Take the image http://www.dota-allstars.com/wiki/Image:BTNRevenant.gif for example: the original gif file is at http://www.dota-allstars.com/w/images/BTNRevenant.gif and the resized gif at http://www.dota-allstars.com/w/images/thumb/BTNRevenant.gif/48px-BTNRevenant.gif . The latter looks pretty bad because of the black background replaced by a transparent (white) background. I'm running MW 1.13.0, using GD.
Please test with current imagemagick and mediawiki, and include version numbers of both and sample output.