The JavaScript URLs work fine, and they weren't too difficult to adapt to my own MediaWiki installation. The URL rewrite stuff that redirects the 404 URL to thumb.php is what seems to be missing, and it affects all image types. I don't know what command is being used to render SVG thumbs. How do I find that info? Here's the other info you requested, along with a copy and paste of the section in my LocalSettings.php that deals with images:
OpenIndiana SunOS 5.11 oi_147 September 2010 $ pkg info imagemagick Name: image/imagemagick Summary: ImageMagick - Image Manipulation Utilities and Libraries Description: ImageMagick - Image Manipulation Utilities and Libraries 6.3.4 Category: System/Multimedia Libraries State: Installed Publisher: openindiana.org Version: 6.3.4.2 Build Release: 5.11 Branch: 0.147 Packaging Date: Tue Sep 14 02:43:01 2010 Size: 22.74 MB FMRI: pkg://openindiana.org/image/[email protected],5.11-0.147:20100914T024301Z ## 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 = 'ImageMagick'; # http://www.mediawiki.org/wiki/Manual:Errors_and_Symptoms#Image_Thumbnails_not_working_and.2For_appearing $wgSVGConverterPath = "/usr/bin"; $wgUseImageResize = true; # https://www.mediawiki.org/wiki/InstantCommons $wgUseInstantCommons = true; # http://www.mediawiki.org/wiki/Manual:Thumb.php # $wgGenerateThumbnailOnParse = false; ## If you use ImageMagick (or any other shell command) on a ## Linux server, this will need to be set to the name of an ## available UTF-8 locale $wgShellLocale = "en_US.utf8"; ## If you want to use image uploads under safe mode, ## create the directories images/archive, images/thumb and ## images/temp, and make them all writable. Then uncomment ## this, if its not already uncommented: # $wgHashedUploadDirectory = false; Jeremy Baron wrote: > > Hi, > > On Tue, Nov 8, 2011 at 00:47, badon <[email protected]> wrote: >> Yes, that's correct. The login is Demo/test - thanks for having a look at >> it. > > Ahh, I see that was in the original mail. I didn't realize what it was at > first. > > On Tue, Nov 8, 2011 at 00:22, badon <[email protected]> wrote: >> sumanah from #mediawiki suggested that I post here. I set up SVG support >> on >> my wiki, and I got the javascript links to rendered PNG images working >> to. >> But, I noticed a few problems: >> >> * SVG images distorted when thumbnails are generated using normal wiki >> image >> link syntax. >> >> I have no idea why the SVG images are being rendered all weird. >> ImageMagick's /usr/bin/convert seems to be configured correctly in >> localsettings.php, and I don't see any problems. > > What command are you using to make SVG thumbs? What distro, convert > package version, and convert version do you have? Are you using > imagemagick's convert or rsvg or something else? > > I'm not sure exactly what rsvg version the WMF cluster is using but > you may want to try something from > http://packages.debian.org/librsvg2-bin > > You say "seems to be configured correctly"... what exactly are your > settings so we can compare? > > You can see @ > http://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php > that the WMF cluster is using >> $path/rsvg-convert -w $width -h $height -o $output < $input > >> * I also discovered that when I clicked on the link javascript links to >> rendered PNG images, 404 errors were returned. This happens for ALL kinds >> of >> images when scaling is requested via URL. >> >> In troubleshooting this I got as far as finding some info about thumb.php >> and htaccess rewrite rules that are supposed to redirect the 404 URLs to >> thumb.php so the images can be generated. It's all greek to me, and I'm >> surprised it isn't working by default on my wiki. > > [...] > > Well, the greek basically is a way to tell the web server to rewrite > the request before sending a response *if* the file is missing. > > Those JS URLs are a local hack at individual wikis and not part of a > default mediawiki install (i think! at least last I checked) so I'm > not surprised they don't work out of the box. > > -Jeremy > > _______________________________________________ > MediaWiki-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > > -- View this message in context: http://old.nabble.com/Help%3A-URL-resizing-404%2C-SVG%27s-render-distorted-tp32801191p32816118.html Sent from the WikiMedia General mailing list archive at Nabble.com. _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
