Project:Support desk/Sections/Images

__NEWSECTIONLINK__

= Image Support =

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
 * Lots of posts on other boards suggested that it's a problem with ImageMagick. Setting $wgUseImageMagick = false; in LocalSettings.php is probably less than optimal but it cleared it up for me.  Rossami 23:45, 24 May 2010 (UTC)

(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)

403 Forbidden error for newly uploaded images

 * MediaWiki version: 1.15.2
 * PHP version: 5.2.2 (cgi-fcgi)
 * MySQL version: 5.0.68-percona-3-log
 * URL: http://www.freewebdirectorywiki.co.uk

I've just recently enabled Special:Upload but for some reason whenever a new file is uploaded it cannot be viewed. Although it appears in the NewFiles log the image appears as a box with a red "x" in the top left hand corner and when clicked gives the following message: "Forbidden. You don't have permission to access /wiki/images/1/13/Test_image.PNG on this server." I have managed to upload some images however, it turns out that whenever an image is uploaded it has a new directory created for it without the correct permissions which means I have to actually physically log in to FTP and adjust the permissions before the image can be viewed. Can I please have some help regarding this? 84.13.40.118 20:47, 16 April 2010 (UTC)

destroyed images after upload

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.6-1+lenny4 (cgi-fcgi)
 * MySQL version: 5.0.51a-24+lenny3
 * URL: www.pubart.de

hello, i have a problem by uploading images to my wiki. after the image is uploaded, the half of the image has inverted colors! the thumbnails produced by the wiki have the same inverted colors. see exapmple on my wiki:

does anybody have the same effect? does anybody know how to solve the problem?

—88.217.137.217 14:26, 28 April 2010 (UTC)pubart


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

Internal Error

—70.176.16.85 23:59, 6 May 2010 (UTC)

I am attempting to upload images, each time that I do I receive the following error:

Could not copy file "/tmp/phpcYtvTx" to "/var/www/vhosts/fantasymakersindustries.com/httpdocs/wiki/images/temp/20100506235707!Ceithlennimage1.jpg".

How do I fix this?

(resolved) Captions not displaying

 * MediaWiki version: 1.15.3
 * PHP version: 5.2.5 (cgi-fcgi)
 * MySQL version: 4.1.24-max-log
 * URL: www.medinabeekeepers.com/wiki/

I came here to figure out why my captions are not displaying properly. Looking at the Help:Images page, I realized that it's not my installation because I can't see captions under the Example Images in this wiki either. Captions display only when the "thumbs" or "frame" option are selected. With "frameless", "border" or omitted, the caption refuses to display.

Looking at the pagesource of the displayed page, the caption is apparently not even being presented to the browser in those examples.

If it's relevant, I am browsing with Internet Explorer 7.0 though I had similar problems on Firefox. Rossami 23:42, 24 May 2010 (UTC)
 * Turns out it's a problem of definition and explanation, not function. We are working to clarify the Help page appropriately.  There does still seem to be a problem where the mouseover captions fail to display in some browsers.  My current hypothesis is that it's an incompatible security setting.  But that will deserve a separate writeup once it's reliably traced.  Rossami 22:03, 26 May 2010 (UTC)

Insert a script for images watermarking

 * MediaWiki version: 1.15.3
 * PHP version: 5.2.13
 * MySQL version: 5.0.77

Hi all, I want to insert a php script (found on google), for insert a watermark on any image of my site. I don't know what file i have to modify: Someone can help me? Regards Rem8

—151.32.251.145 00:01, 21 June 2010 (UTC)