Jeffrey V. Merkey wrote:
Jeffrey V. Merkey wrote:
Brion Vibber wrote:
Jeffrey V. Merkey wrote:
Here is a more complete question.
I have attempted to setup SVG to PNG rendering and it does not seem to work on 1.7.1. I checked the Defaults file in includes and I have verified rsvg is properly installed. I have also enabled the DebugLogFile option and attempted to run a trace the results indicate this section of code is not even activating as there are no messages being output to indicate that the RSVG section of code is even becoming active during rendering. The mine/type detection does appear to work in that SVG images are in fact detected.
Since you still do not provide any of your SVG-related configuration settings or the details of your investigations, I can't guess whether you've simply configured something wrong. All I can tell you is that if configured correctly, it is known to work.
-- brion vibber (brion @ pobox.com)
Ask, and ye shall receive. Here is the LocalSettings.php (passwords removed) from MediaWiki 1.7.1. It fails with the default 1.7.1 right out of the tar.gz file. I also included the DefaultSettings.php
Jeff
Here are the default settings for DefaultSettings.php for the SVG renderer.
Jeff
# Scalable Vector Graphics (SVG) may be uploaded as images. # Since SVG support is not yet standard in browsers, it is # necessary to rasterize SVGs to PNG as a fallback format. # # An external program is required to perform this conversion: $wgSVGConverters = array( 'ImageMagick' => '$path/convert -background white -geometry $width $input $output', 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output', 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output', 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input', 'rsvg' => '$path/rsvg -w$width -h$height $input $output', ); /** Pick one of the above */ $wgSVGConverter = 'rsvg'; /** If not in the executable PATH, specify */ $wgSVGConverterPath = ''; /** Don't scale a SVG larger than this */ $wgSVGMaxSize = 1024;