Project:Support desk/Sections/Images

__NEWSECTIONLINK__

= Image Support =

external links into sidebar column
I can I make external links in the sidebar/toolbox column? —82.173.153.235 11:35, 10 February 2010 (UTC)
 * MediaWiki version: 1.12.0rc1
 * PHP version: 5.1.6 (cgi)
 * MySQL version: 5.0.77mm0.1-log
 * URL: http://www.spiriwiki.com/

Images not displaying

 * MediaWiki version: 1.10.1
 * PHP version: 5.2.9
 * MySQL version: 5.0.89
 * URL: http://www.futurenovo.com

A recent failed upgrade of cpanel broke my installation, requiring a reinstall of perl and mysql. Following this, images no longer displayed on my wiki pages – they just show as the namespace and filename, i.e., Image:Filename.jpg inline with the text. No error is reported related to the image. Drilling down to the actual image location will display the image in the browser window.

Since this happened and I couldn't fix it, I migrated the installation to a new server (more memory, fresh install) expecting the issue to be resolved but it hasn't. I use GD and have tried the following:
 * 1) Installed ImageMagic and made appropriate changes to LocalSettings.php – no change, reverted to GD settings.
 * 2) Tweaked PHP
 * 3) ran /scripts/rebuildImages.php – no errors, but 0 of 66 images changed.  Likewise oldimages
 * 4) ran the following on the image table:
 * 5) ALTER TABLE image ADD COLUMN img_name2 varchar(255);
 * 6) UPDATE image SET img_name2=img_name;
 * 7) UPDATE image SET img_name=img_name2;
 * 8) ALTER TABLE image DROP COLUMN img_name2;
 * 9) uploaded a new image and attempted to include in a page without success

I understand the MW version is old, but I have a lot of custom extensions, etc that I don't want to have to rewrite so I don't want to upgrade. And I seriously doubt it would change the image issue. (I haven't made any mods to the MW install itself.) Note: Some of my extensions on some pages (not Home) need to be adjusted since the migration, but the image problem is identical to what was happening on the old server. Ideas anyone?

Update: Re-uploading an image appears to resolve the issue, even though the image is in the directory and database. Any ideas how to deal with this in bulk and not have to re-upload all of the images?

—Ryonck 17:30, 14 February 2010 (UTC)

Not creating thumbnails
Everything installed correctly, but I cannot get any thumbnails working. :( I tired messing with $wgHashedUploadDirectory - the first one uploaded under the link above is with "true" parameter, while the second one is with "$wgHashedUploadDirectory = false;" (current). No results. The directory is writeable and I can upload files, but the script does not generate thumbnails. Any ideas what's wrong? I have GD on the host. 87.105.138.11 13:52, 22 February 2010 (UTC)
 * MediaWiki 	1.15.1
 * PHP 	5.2.4 (cgi-fcgi)
 * MySQL 	4.0.27-log
 * URL: http://mwllwiki.studio-gepard.pl/index.php?title=Special:NewFiles

(solved) rsvg doesn't convert

 * MediaWiki version: 1.13.0
 * PHP version: 5.2.11 (cgi)
 * MySQL version: 4.1.22-standard-log
 * URL: http://www.die-glaeserne-klinge.de/index.php?title=Bild:Grom--Balamarwappen.svg

Hi,

it seems, that the rsvg-converter of my Wiki doesn't work properly. All settings in the LocalSettings.php are correct, the rsvg-folder does exist and is not empty, $wgSVGConverterPath is /rsvg.

I can upload .svg-files without any problem, and the dimensions and file-size are shown correctly on the image-page, but instead of the png it shows a grey field with an error message, as shown on the linked page.

Translated to english it says something like


 * Error convertigng the thumbnail:
 * /kunden/186179_59823/wiki/bin/ulimit4.sh: line 4: /rsvg/rsvg: No such file or directory

well, the ulimit4.sh does not contain "/rsvg/rsvg". I have tried to delete $wgSVGConverterPath from the LocalSettings.php, the result was, that the error-message reported only one /rsvg.

I have not installed rsvg, it must have come with the MediaWiki-Download.

Do you have an idea to solve the problem?

Thanks in Advance Grom

—78.49.116.249 13:22, 3 March 2010 (UTC)


 * That's because domainFactory hasn't rsvg installed on their servers. Since I'm also hosting a MediaWiki at dF, I had the same problem. At first I tried to use ImageMagick as the SVG renderer, but the quality wasn't really nice (e.g., ImageMagick didn't renderd transparent SVG's to transparent PNG's). After a long google search, I found a static compiled rsvg, which works really well on my MediaWiki installation. Until now I haven't had any problems with that. If you're interested, I have a look at the config I used and post it here. --WikiMichi 22:30, 7 March 2010 (UTC)


 * That would be nice, thanks. Is there anything i have to take care of during the installation, that is not explained in the install-guide?—69.63.57.3 21:29, 6 March 2010 (UTC)


 * 1. Download the binary package and extract it to an newly created folder on your webspace (e.g. svgconvert in your wiki folder)
 * 2. Download my converter script into the same folder.
 * 3. Make the script executable (chmod u+x convert.sh via SSH or set the file rights to 740 via FTP).
 * 4. Set the following variables in your LocalSettings.php:


 * That should do the trick. BTW, since the svgconvert binary is just converting the SVG to PNG, my script calls ImageMagick afterwards for thumbnailing. --WikiMichi 21:45, 8 March 2010 (UTC)


 * Thank you very much, after uploading all files in binary-mode it worked very fine. --78.48.72.159 18:16, 9 March 2010 (UTC)


 * You are welcome. Have fun with SVG! [[Image:Icon wink.gif]] --WikiMichi 20:34, 9 March 2010 (UTC)


 * MediaWiki version: 1.14.0
 * PHP version: 5.2.8 (apache2handler)
 * MySQL version: 5.1.30-community-log

Hi I have a wiki that is locked down so that a certain group [users] is unable to create new pages. They are able to edit existing pages but unable to add new ones. I need this group to be able to upload images. Currently they get an error stating that they are unable to create or edit pages so an image cannot be uploaded.

I am unsure how to get around this issue. Can anyone guide me in the right direction to fix the issue.

Regards Hayden

Current Group Permissions

$wgGroupPermissions['*'   ]['read']             = false;
 * 1) Group Premissions

$wgGroupPermissions['*'   ]['edit']             = false;

$wgGroupPermissions['*']['createaccount'] = false;

$wgGroupPermissions['*']['createpage'] = false;

$wgGroupPermissions['*']['createtalk'] = false;

$wgGroupPermissions['user' ]['read']            = true;

$wgGroupPermissions['user' ]['edit']            = true;

$wgGroupPermissions['user']['reupload'] = true;

$wgGroupPermissions['user']['reupload-shared'] = true;

$wgGroupPermissions['user']['upload'] = true;

$wgGroupPermissions['user']['createpage'] = false;

$wgGroupPermissions['user']['createtalk'] = false;

$wgGroupPermissions['staff']['read'] = true;

$wgGroupPermissions['staff']['search'] = true;

$wgGroupPermissions['staff']['createpage'] = true;

$wgGroupPermissions['staff']['createtalk'] = true;

$wgGroupPermissions['staff']['edit'] = true;

$wgGroupPermissions['staff']['move'] = true;

$wgGroupPermissions['staff']['move-subpages'] = true;

$wgGroupPermissions['staff']['reupload'] = true;

$wgGroupPermissions['staff']['reupload-shared'] = true;

$wgGroupPermissions['staff']['upload'] = true;

$wgGroupPermissions['staff']['writeapi'] = true;

$wgGroupPermissions['staff']['minoredit'] = true;

$wgGroupPermissions['staff']['purge'] = true;

$wgGPManagerNeverGrant['staff'] = array;

$wgGroupPermissions['sysop']['category'] = true;

$wgNamespaceProtection[NS_CATEGORY] = array( 'category' );

—203.12.147.98 00:46, 25 March 2010 (UTC)


 * MediaWiki version: mediawiki-1.6.12
 * PHP version: php5-5.2.12
 * MySQL version: mysql-server-5.0.89
 * URL:

Hello. For any not clear reason in теге The parametre link does not work. With what it can be connected? That I would not write in this parametre - the reference all the same conducts on page of the description of the image. —85.26.232.213 05:56, 1 April 2010 (UTC)


 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

Wanted to know if there is a way of displaying a Image in Mediawiki that points to a .jpg file on a network share? Have th link to the file working. But cant find a way to display the Image that it is linking to without uploading the image to media wiki. Want it to display the image on the network share without having to upload anything.

—78.105.0.186 13:35, 1 April 2010 (UTC)

I tried to include a link directly from an image writing this: [ [Bild:bild.jpg|300px|link=linkpage] ] but it seems like "link=linkpage" doesn't work. Any ideas what i was doing wrong? i also tried [ [Bild:bild.jpg|300px|[link=linkpage] ] ], but it didn't work either. I am grateful for any help! —95.33.115.10 15:09, 2 April 2010 (UTC)
 * MediaWiki version: 1.12.0
 * PHP version: 5.2.6-3ubuntu4.4 (apache2handler)
 * MySQL version: 5.0.75-0ubuntu10.2
 * URL: important?


 * Well, I think the link parameter is not working, because this parameter was introduced in MediaWiki 1.14.0, and you are using version 1.12.0. Have a look at the Release notes: "Added "link" parameter to image links, to allow images to link to an arbitrary title or URL" --WikiMichi 22:37, 7 April 2010 (UTC)

i have set new site but unable to show images

 * MediaWiki version: 1.15.2
 * PHP version: 5.2
 * MySQL version:
 * URL: www.kundrabansal.com/wiki

I have set new website for my client, the site is configured but the images are not showing i have used the instruction but it is just showing the link. I have put the image in images folder in root directory.

Is there any template available to design the pages as well

—Lotictech 05:17, 3 April 2010 (UTC)