On Sun, 2011-11-13 at 14:38 -0800, badon wrote:
I switched to rsvg, and I notice no difference. I tried deleting the previous PNG created by ImageMagick, but although it's being served by the server, I can't find it in the directory:
http://www.coincompendium.com/wiki/images/thumb/4/4c/Template-info.svg/117px...
Ideas? This seems strange that I'm having so much trouble with images. Is it caused by me configuring things incorrectly, or is it just a quirk of my server? Here's my localsettings.php:
## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; $wgHashedUploadDirectory = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert";
# http://www.mediawiki.org/wiki/Manual:Image_Administration#SVG $wgAllowTitlesInSVG = true; $wgSVGConverter = 'rsvg'; # http://www.mediawiki.org/wiki/Manual:Errors_and_Symptoms#Image_Thumbnails_no... $wgSVGConverterPath = "/usr/bin"; $wgUseImageResize = true; # https://www.mediawiki.org/wiki/InstantCommons $wgUseInstantCommons = true; # http://www.mediawiki.org/wiki/Manual:Thumb.php # $wgGenerateThumbnailOnParse = false;
Notice the only change is $wgSVGConverter = 'rsvg';
badon wrote:
OK, while I'm updating imagemagick or switching to rsvg, any guesses how to deal with the URL resizing 404?
Platonides wrote:
On 11/11/11 23:37, badon wrote:
OK, I ran it again but to a different directory, I got the exact same image you see on the site: distorted. So, ImageMagick works but it's giving me distorted PNG's.
Great. So the culprit was imagemagick. You can try to update ImageMagick to a newer version with better SVG support, or try using a different tool (such as rsvg) for SVG->PNG transformation.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Do you have a line like this in your LocalSettinngs.php ??
$wgFileExtensions = array( 'png', 'eps', 'ps', 'gif', 'jpg', 'jpeg', 'svg', 'ppt', 'pdf', 'psd', 'mp3', 'xls', 'xlsx', 'swf', 'doc','docx', 'odt', 'odc', 'odp', 'odg', 'mpp');