Project:Support desk/Archives/Images/001

= 2008 =

(RESOLVED) Massimport Images

 * MediaWiki: 1.10.0
 * PHP: 5.1.2
 * MySQL: 5.0.18

I need to massimport images into my MediaWiki. I watched the database and found the table the imagesinformation are stored in. But i don't understand the way how the directories are created and how MediaWiki knows where wich images was placed.

Can anyone tell me how that works?

—192.166.87.111 12:22, 21 February 2008 (UTC)


 * To import images, use the maintenance/importImages.php script. For the curious: the category structure is based on an MD5 hash of the file name. But don't try to mimic mediawiki internals to improt stuff - let mediawiki do it. -- Duesentrieb ⇌ 14:29, 21 February 2008 (UTC)

(RESOLVED) SVG image types / ImageMagick

 * MediaWiki: 1.11.1
 * PHP: 5.2.0
 * MySQL: 5.0.22-community-max-nt
 * URL: http://www.bandwiki.net/

I recently was able to guilt my hosting company into installing ImageMagick so that we can upload and convert SVG image types. They installed the component on a Windows Server to "c:\imagemagick ". Now I want to configure my LocalSettings.php file to use the component.

I have set the following:

$wgEnableUploads = true; #false $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/ImageMagick/VisualMagick/bin"; #"/usr/bin/convert"; .... I have used several variations on the above to see I could get it to work. No luck. ....

And the following:

$wgAllowTitlesInSVG = true; $wgGenerateThumbnailOnParse = true; $wgIgnoreImageErrors = true; $wgSVGConverters = "ImageMagick"; $wgSVGConverterPath = "/ImageMagick/VisualMagick/bin"; $wgUseImageResize = true; $wgMediaHandlers = array(   'image/jpeg' => 'BitmapHandler',    'image/png' => 'BitmapHandler',    'image/gif' => 'BitmapHandler',    'image/x-ms-bmp' => 'BmpHandler',    'image/svg+xml' => 'SvgHandler', // official    'image/svg' => 'SvgHandler', // compat    'image/vnd.djvu' => 'DjVuHandler', // official    'image/x.djvu' => 'DjVuHandler', // compat    'image/x-djvu' => 'DjVuHandler', // compat );

I really don't want to annoy my host any further about this issue at this time, and would greatly appreciate any help that can be given.

Follow this link to see the error I am getting and what happens with the images: http://wiki.spokanebands.com/index.php?title=Special:Uncategorizedimages

—216.223.16.33 02:13, 22 February 2008 (UTC)
 * If ImageMagick is installed to c:\imagemagick (use single quotes not doubles or the backspaces won't work), then the paths for the commands should be pointing to the executables within that same dir. Another issue is that ImageMagick is about the worst choice of the available options for dealing with SVG. The one preferred by the WikiMedia projects is rsvg. --Nad 10:06, 22 February 2008 (UTC)
 * I have changed the path to '/imagemagick/bin/convert.exe' using single quotes instead of double quotes, but still have no joy. As you can see I also changed the path. After installing the component on my local workstation, I was able to see the directory structure and base the path on that. Did I do something wrong? 216.223.16.33 14:37, 22 February 2008 (UTC)
 * Why are you setting the path to '/imagemagick...' when it's located at 'c:\imagemagick...', set it to the same path the executables are located at --Nad 19:30, 22 February 2008 (UTC)


 * Because when I do that, I get the following error, I don't believe it wants a physical path as it is using the forward slash (indicating virtual paths), not the back slash (indicating a physical path) in its defaults.--216.223.16.33 00:16, 23 February 2008 (UTC)

Parse error: parse error, unexpected ':' in D:\hosting\member\northwestpos\spokanebands\wiki\LocalSettings.php on line 216 PHP Parse error: parse error, unexpected ':' in D:\hosting\member\northwestpos\spokanebands\wiki\LocalSettings.php on line 216
 * It's not a virtual path, it needs to be a direct local FS location. The default setting uses forward slash because the software is designed to run on Linux, If you're running it on windows you need to include the full pathname including drive specification. Try using forward slashes, but keep the drive at the start not a leading slash as that makes no sense on a windows system. --Nad 06:56, 23 February 2008 (UTC)

(RESOLVED) Commons
Hi, is it possible to use images from Commons on my Wiki, without uploading them on my Wiki? Regards, 81.205.35.85 12:39, 8 March 2008 (UTC)
 * No. See InstantCommons --MF-Warburg 11:26, 9 March 2008 (UTC)
 * Ah, not yet. Thanks. Regards, 81.205.35.85 16:10, 9 March 2008 (UTC)
 * This is partially possible using variables $wgAllowExternalImages and $wgAllowExternalImagesFrom.  mgrabovský  | talk  (DJ Jeri)  [[Image:Tournesol.png|25px]] MW Support Team  13:29, 25 March 2008 (UTC)

(RESOLVED) Change Destination of uploads

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP: 5
 * MySQL: 4
 * URL: http://www.wikidante.altervista.org/php5/index.php

I've been installed MediaWiki on my web space but I have got the permission to upload file only in the directory sssigned to me, so when I try to upload a immage I can't do it because the software tries to upload the immage in a directory where I haven't got the permission to access. How can I modify the destination of the files uploaded? Thk a lot for help.

—House90 20:46, 11 April 2008 (UTC)
 * Look at $wgUploadDirectory.  mgrabovský  | talk  (DJ Jeri)  [[Image:Tournesol.png|25px]] MW Support Team  07:07, 14 April 2008 (UTC)

(RESOLVED) Problem using the gallery function

 * MediaWiki: 1.93
 * PHP: 5.2.5
 * MySQL: 5.0.45-community-log
 * URL: www.world-of-roleplaying.com

I am using the following command to display a gallery of images on a page. I can only ever get it to display 4 per row, even though it says 6

Cheers --bsycamore--12:57, 14 May 2008 (UTC)86.159.48.38


 * Has anyone any ideas on how to resolve this?
 * --bsycamore--13:14, 2 July 2008 (UTC)86.159.48.38


 * You need to upgrade. The 'perrow' option was introduced in MediaWiki 1.10, see 19721. -- :bdk: 02:11, 29 August 2008 (UTC)

(RESOLVED) Categorizing Uploaded files

 * MediaWiki 	1.12.0
 * PHP 	5.2.5 (apache)
 * MySQL 	5.0.45-community
 * URL: | Free-Form RPG Community

I was looking in the Special pages section and noticed the heading Uncategorized Files. I clicked it and it shows the images files that had been uploaded with the wiki's upload feature. Is there a way I can set up categories for images to be uploaded to? If so, could someone please explain to me how? Any assistance received is truly appreciated. 75.167.218.31 18:04, 14 May 2008 (UTC)

—75.167.218.31 18:04, 14 May 2008 (UTC)


 * Just add a category link to the description of the file when using the upload form (at least at Wikipedia; I don't know the upload form on your wiki). It's the same code as a category on a simple page:


 * If it does not exist, it will show up in a different colour (standard, like on Wikipedia: red) after uploading, so you can create it from this link and link it to the categories above. -- 89.55.189.253 10:28, 22 June 2008 (UTC)

(RESOLVED) $wgLogo does not change the logo

 * MediaWiki: 1.12
 * OS: FreeBSD 7.0-RELEASE-p1
 * PHP: 5.2.5 (apache2handler)
 * MySQL: 5.0.51a
 * URL: http://www.ratedzero.com


 * Changing site logo using the $wgLogo setting in LocalSettings.php does not work.
 * There is no error, just simply a blank box in the left corner.
 * Note: Not even the default wiki.png shows up.
 * What did I miss during installing?
 * Additionally, I just realized that no images are showing up...not even the footer images pointing to the Mediawiki site.
 * I checked my /var/log/httpd-error.log and see nothing stating problems with the server.

—Oldr4ver 18:59, 19 May 2008 (UTC)


 * I parsed every php file and verified path variable...no luck
 * Finally, I deleted the uploaded files, and re-uploaded, then edited $wgLogo to call the image via fully qualified domain url.

(RESOLVED) Upload from web
There's any way to upload a image directly from the web?. Example, going to Upload, then URL:http://commons.../Image:Some.png and then save a copy of the image in the wiki. Maybe an extension was necessary, may be a patch.--Eloy 16:40, 3 June 2008 (UTC)


 * Have a look at Manual:$wgAllowCopyUploads. -- 89.55.189.253 10:41, 22 June 2008 (UTC)