Hi,
I'd like to know how I can use Inkscape for SVG thumbnailing on my Windows 7 OS with a MediaWiki installation. Inkscape's files are located at C:\Program Files (x86)\Inkscape. My efforts to date (mostly based on Manual:$wgSVGConverters and other MediaWiki manual pages) have failed. Currently my LocalSettings.php file's SVG-related settings are:
# Image Converter
$wgSVGConverter = 'Inkscape'; $wgSVGConverters = array( 'Inkscape' => '"$path/inkscape.exe" -z -w $width -f $input -e $output', ); # Image converter path $wgSVGConverterPath = '/Program Files (x86)/Inkscape';
This gives the following error (which appears in the thumbnail's place):
Error creating thumbnail: '""' is not recognized as an internal or external command, operable program or batch file.
The reason I'd like Inkscape as my SVG thumbnailer in particular is because I sometimes use SVGs that are only correctly rendered by Inkscape (I know that Wikia's thumbnailer (whatever it might be) frequently makes rendering errors with these SVGs, e.g., see http://health-and-medicine.wikia.com/wiki/File:Symptoms_of_Hodgkin_lymphoma.... and all the black spots that appear in it.
Thanks for your time, Brenton
If you just need quick and dirty clientside SVG rendering, try this extension:
https://www.mediawiki.org/wiki/Extension:NativeSvgHandler
Even if you don't have any other SVG renderer enabled, it pipes the output through your browser's SVG renderer as a middleman, which, unless you have a browser that belongs in a museum, will work fine 100% of the time.
Date: Thu, 5 Feb 2015 05:04:16 +1000 From: brentonhorne77@gmail.com To: mediawiki-l@lists.wikimedia.org Subject: [MediaWiki-l] Inkscape for SVG thumbnailing
Hi,
I'd like to know how I can use Inkscape for SVG thumbnailing on my Windows 7 OS with a MediaWiki installation. Inkscape's files are located at C:\Program Files (x86)\Inkscape. My efforts to date (mostly based on Manual:$wgSVGConverters and other MediaWiki manual pages) have failed. Currently my LocalSettings.php file's SVG-related settings are:
# Image Converter
$wgSVGConverter = 'Inkscape'; $wgSVGConverters = array( 'Inkscape' => '"$path/inkscape.exe" -z -w $width -f $input -e $output', ); # Image converter path $wgSVGConverterPath = '/Program Files (x86)/Inkscape';
This gives the following error (which appears in the thumbnail's place):
Error creating thumbnail: '""' is not recognized as an internal or external command, operable program or batch file.
The reason I'd like Inkscape as my SVG thumbnailer in particular is because I sometimes use SVGs that are only correctly rendered by Inkscape (I know that Wikia's thumbnailer (whatever it might be) frequently makes rendering errors with these SVGs, e.g., see http://health-and-medicine.wikia.com/wiki/File:Symptoms_of_Hodgkin_lymphoma.... and all the black spots that appear in it.
Thanks for your time, Brenton _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks, Arcane it worked perfectly. Do you know of any similar extension for JPGs and other bitmap image formats as my Wiki is having similar problems with these image formats too?
PS I've made some inquiries about the Jmol extension with the author (NicoV) mentioning your and my difficulties ( https://www.mediawiki.org/wiki/Extension_talk:Jmol).
On 5 February 2015 at 08:17, Arcane 21 arcane@live.com wrote:
If you just need quick and dirty clientside SVG rendering, try this extension:
https://www.mediawiki.org/wiki/Extension:NativeSvgHandler
Even if you don't have any other SVG renderer enabled, it pipes the output through your browser's SVG renderer as a middleman, which, unless you have a browser that belongs in a museum, will work fine 100% of the time.
Date: Thu, 5 Feb 2015 05:04:16 +1000 From: brentonhorne77@gmail.com To: mediawiki-l@lists.wikimedia.org Subject: [MediaWiki-l] Inkscape for SVG thumbnailing
Hi,
I'd like to know how I can use Inkscape for SVG thumbnailing on my
Windows
7 OS with a MediaWiki installation. Inkscape's files are located at C:\Program Files (x86)\Inkscape. My efforts to date (mostly based on Manual:$wgSVGConverters and other MediaWiki manual pages) have failed. Currently my LocalSettings.php file's SVG-related settings are:
# Image Converter
$wgSVGConverter = 'Inkscape'; $wgSVGConverters = array( 'Inkscape' => '"$path/inkscape.exe" -z -w $width -f $input -e
$output',
); # Image converter path $wgSVGConverterPath = '/Program Files (x86)/Inkscape';
This gives the following error (which appears in the thumbnail's place):
Error creating thumbnail: '""' is not recognized as an internal or external command, operable program or batch file.
The reason I'd like Inkscape as my SVG thumbnailer in particular is
because
I sometimes use SVGs that are only correctly rendered by Inkscape (I know that Wikia's thumbnailer (whatever it might be) frequently makes
rendering
errors with these SVGs, e.g., see
http://health-and-medicine.wikia.com/wiki/File:Symptoms_of_Hodgkin_lymphoma....
and all the black spots that appear in it.
Thanks for your time, Brenton _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Oh and btw, if someone else is watching and wondering if they should bother trying to get SVG thumbnailing working via Inkscape like I originally wanted the answer is, "Yes please!" This solution is just a temporary measure.
On 5 February 2015 at 08:47, Brenton Horne brentonhorne77@gmail.com wrote:
Thanks, Arcane it worked perfectly. Do you know of any similar extension for JPGs and other bitmap image formats as my Wiki is having similar problems with these image formats too?
PS I've made some inquiries about the Jmol extension with the author (NicoV) mentioning your and my difficulties ( https://www.mediawiki.org/wiki/Extension_talk:Jmol).
On 5 February 2015 at 08:17, Arcane 21 arcane@live.com wrote:
If you just need quick and dirty clientside SVG rendering, try this extension:
https://www.mediawiki.org/wiki/Extension:NativeSvgHandler
Even if you don't have any other SVG renderer enabled, it pipes the output through your browser's SVG renderer as a middleman, which, unless you have a browser that belongs in a museum, will work fine 100% of the time.
Date: Thu, 5 Feb 2015 05:04:16 +1000 From: brentonhorne77@gmail.com To: mediawiki-l@lists.wikimedia.org Subject: [MediaWiki-l] Inkscape for SVG thumbnailing
Hi,
I'd like to know how I can use Inkscape for SVG thumbnailing on my
Windows
7 OS with a MediaWiki installation. Inkscape's files are located at C:\Program Files (x86)\Inkscape. My efforts to date (mostly based on Manual:$wgSVGConverters and other MediaWiki manual pages) have failed. Currently my LocalSettings.php file's SVG-related settings are:
# Image Converter
$wgSVGConverter = 'Inkscape'; $wgSVGConverters = array( 'Inkscape' => '"$path/inkscape.exe" -z -w $width -f $input -e
$output',
); # Image converter path $wgSVGConverterPath = '/Program Files (x86)/Inkscape';
This gives the following error (which appears in the thumbnail's place):
Error creating thumbnail: '""' is not recognized as an internal or external command, operable program or batch file.
The reason I'd like Inkscape as my SVG thumbnailer in particular is
because
I sometimes use SVGs that are only correctly rendered by Inkscape (I
know
that Wikia's thumbnailer (whatever it might be) frequently makes
rendering
errors with these SVGs, e.g., see
http://health-and-medicine.wikia.com/wiki/File:Symptoms_of_Hodgkin_lymphoma....
and all the black spots that appear in it.
Thanks for your time, Brenton _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
If you have trouble getting thumbnailing to work, you can disable the server-side resizing by setting in LocalSettings.php:
$wgUseImageResize = false;
This isn't ideal if your images are large photos because they'll be downloaded at full size to the web browser, but if your images are roughly screen-sized that should get you working for now.
-- brion
On Wed, Feb 4, 2015 at 2:47 PM, Brenton Horne brentonhorne77@gmail.com wrote:
Thanks, Arcane it worked perfectly. Do you know of any similar extension for JPGs and other bitmap image formats as my Wiki is having similar problems with these image formats too?
PS I've made some inquiries about the Jmol extension with the author (NicoV) mentioning your and my difficulties ( https://www.mediawiki.org/wiki/Extension_talk:Jmol).
On 5 February 2015 at 08:17, Arcane 21 arcane@live.com wrote:
If you just need quick and dirty clientside SVG rendering, try this extension:
https://www.mediawiki.org/wiki/Extension:NativeSvgHandler
Even if you don't have any other SVG renderer enabled, it pipes the
output
through your browser's SVG renderer as a middleman, which, unless you
have
a browser that belongs in a museum, will work fine 100% of the time.
Date: Thu, 5 Feb 2015 05:04:16 +1000 From: brentonhorne77@gmail.com To: mediawiki-l@lists.wikimedia.org Subject: [MediaWiki-l] Inkscape for SVG thumbnailing
Hi,
I'd like to know how I can use Inkscape for SVG thumbnailing on my
Windows
7 OS with a MediaWiki installation. Inkscape's files are located at C:\Program Files (x86)\Inkscape. My efforts to date (mostly based on Manual:$wgSVGConverters and other MediaWiki manual pages) have failed. Currently my LocalSettings.php file's SVG-related settings are:
# Image Converter
$wgSVGConverter = 'Inkscape'; $wgSVGConverters = array( 'Inkscape' => '"$path/inkscape.exe" -z -w $width -f $input -e
$output',
); # Image converter path $wgSVGConverterPath = '/Program Files (x86)/Inkscape';
This gives the following error (which appears in the thumbnail's
place):
Error creating thumbnail: '""' is not recognized as an internal or external command, operable program or batch file.
The reason I'd like Inkscape as my SVG thumbnailer in particular is
because
I sometimes use SVGs that are only correctly rendered by Inkscape (I
know
that Wikia's thumbnailer (whatever it might be) frequently makes
rendering
errors with these SVGs, e.g., see
http://health-and-medicine.wikia.com/wiki/File:Symptoms_of_Hodgkin_lymphoma....
and all the black spots that appear in it.
Thanks for your time, Brenton _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks, Brion, that worked perfectly, just as a temporary measure though.
On 5/02/2015 9:03 AM, Brion Vibber wrote:
If you have trouble getting thumbnailing to work, you can disable the server-side resizing by setting in LocalSettings.php:
$wgUseImageResize = false;
This isn't ideal if your images are large photos because they'll be downloaded at full size to the web browser, but if your images are roughly screen-sized that should get you working for now.
-- brion
On Wed, Feb 4, 2015 at 2:47 PM, Brenton Horne brentonhorne77@gmail.com wrote:
Thanks, Arcane it worked perfectly. Do you know of any similar extension for JPGs and other bitmap image formats as my Wiki is having similar problems with these image formats too?
PS I've made some inquiries about the Jmol extension with the author (NicoV) mentioning your and my difficulties ( https://www.mediawiki.org/wiki/Extension_talk:Jmol).
On 5 February 2015 at 08:17, Arcane 21 arcane@live.com wrote:
If you just need quick and dirty clientside SVG rendering, try this extension:
https://www.mediawiki.org/wiki/Extension:NativeSvgHandler
Even if you don't have any other SVG renderer enabled, it pipes the
output
through your browser's SVG renderer as a middleman, which, unless you
have
a browser that belongs in a museum, will work fine 100% of the time.
Date: Thu, 5 Feb 2015 05:04:16 +1000 From: brentonhorne77@gmail.com To: mediawiki-l@lists.wikimedia.org Subject: [MediaWiki-l] Inkscape for SVG thumbnailing
Hi,
I'd like to know how I can use Inkscape for SVG thumbnailing on my
Windows
7 OS with a MediaWiki installation. Inkscape's files are located at C:\Program Files (x86)\Inkscape. My efforts to date (mostly based on Manual:$wgSVGConverters and other MediaWiki manual pages) have failed. Currently my LocalSettings.php file's SVG-related settings are:
# Image Converter
$wgSVGConverter = 'Inkscape'; $wgSVGConverters = array( 'Inkscape' => '"$path/inkscape.exe" -z -w $width -f $input -e
$output',
); # Image converter path $wgSVGConverterPath = '/Program Files (x86)/Inkscape';
This gives the following error (which appears in the thumbnail's
place):
Error creating thumbnail: '""' is not recognized as an internal or external command, operable program or batch file.
The reason I'd like Inkscape as my SVG thumbnailer in particular is
because
I sometimes use SVGs that are only correctly rendered by Inkscape (I
know
that Wikia's thumbnailer (whatever it might be) frequently makes
rendering
errors with these SVGs, e.g., see
http://health-and-medicine.wikia.com/wiki/File:Symptoms_of_Hodgkin_lymphoma....
and all the black spots that appear in it.
Thanks for your time, Brenton _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Aha! I found my solution for both thumbnailing problems (SVG and bitmap). I felt I'd share it in case someone else has a similar problem and reads this.
Here's a snippet of my |LocalSettings.php| file, namely the image-thumbnailing relevant part:
|# Image Converter|
|$wgSVGConverter = 'Inkscape';|
| ||$wgSVGConverters = array(|
| 'Inkscape' => '"/Program Files (x86)/Inkscape/inkscape.com" -z -w $width -f $input -e $output',|
|);|
| ||# Image converter path|
|$wgSVGConverterPath = '/Program Files (x86)/Inkscape';|
| ||## To enable image uploads, make sure the 'images' directory|
|## is writable, then set this to true:|
|$wgEnableUploads = true;|
|$wgUseImageMagick = true;|
|$wgImageMagickConvertCommand = convert;
Hope this helps someone else, Brenton |
mediawiki-l@lists.wikimedia.org