Project:Support desk/Sections/Images

__NEWSECTIONLINK__

= Image Support =

$wgUseSharedUploads

 * MediaWiki version: 1.14.0
 * PHP version:  5.2.8
 * MySQL version: 5.0.77-community
 * URL: http://aseanpedia.com

Hi, I am operating multiple wikis and I think the use of $wgUseSharedUploads is a good idea. However, the instructions at Manual:$wgUseSharedUploads assume some background knowledge and are incomprehensible for a novice like me:

If you operate multiple wikis, you can define a shared upload path using $wgSharedUploadPath. If $wgUseSharedUploads is set, the wiki will look in the shared repository if no file of the given name is found in the local repository (for, [[Media:..]] links).

Thumbnails will also be looked for and generated in this directory.

Uploads to the wiki will NOT be put there - they will be put into $wgUploadDirectory.

Supposing I create a new wiki called imagewiki.com and a database called Imagedb:
 * How should I tweak my LocalSettings.php? Do I need to tweak both the LocalSettings.php for aseanpedia.com and also for imagewiki.com?
 * Can I use a "false" (unregistered) domain name? &mdash; PM Poon 17:21, 1 May 2009 (UTC)

Thumbs are not centered
Look here Help:Images and scroll down to "Thumbs". The picture and the text is not centered within the lighter area arround it. --Lastwebpage 20:05, 7 May 2009 (UTC)

Error creating thumbnail

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.0-8+etch15
 * MySQL version: 5.0.32-Debian_7etch10-log
 * URL: http://www.stomatocysts.unibe.ch/wiki/

After upgrading from Mediawiki 1.13 to 1.14, I have an "Error creating thumbnail:" without any further information. I use ImageMagick 6.2.4. My local settings are: $wgUseImageMagick = true; $wgUseImageResize = true; $wgImageMagickConvertCommand ='/usr/bin/convert';

—130.92.9.58 12:24, 12 May 2009 (UTC)

How to change the default 180px thumbnail size for non-logged in users?

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.9
 * MySQL version: 5.0.67
 * URL: n/a

I was wondering whether it is possible to change the default 180 pixels thumbnail size for non-logged in users. Registered users can do this through their preferences and the admin can change the available settings through $wgThumbLimits. But what about users without account? I know I could add a specific size parameter to each thumbnail image, but the 180 pixels must be set somewhere in the MediaWiki code.

My wiki is not yet "live", but the test users find the 180 pixels thumbnails just a tad too small. Since most readers will be lurkers without account, I'd like to increase the size a bit to make the thumbs a bit more useful to these users. Any tips/advice? —81.82.72.97 21:53, 28 May 2009 (UTC)


 * Set  $wgDefaultUserOptions['thumbsize'] = 2;  where the value "2" is the index of the relevant setting in $wgThumbLimits. By default the ThumbLimits is:


 * So setting to "3" would make the default option 200px; of course if none of the options there are suitable, you can simply add in your own value at the appropriate place, and link to that. Hope this helps, it's a bit complicated I know, but that's how the cookie crumbles... Happy ‑ melon 22:14, 28 May 2009 (UTC)


 * That's it! Thank you! Once you know how it works, it makes sense but I could have searched for that for years without your help... —81.82.72.97 06:05, 29 May 2009 (UTC)

Cannot allocate memory error while displaying thumbnails of larger images.

 * MediaWiki version: 1.15.0
 * PHP version: 5.2.5 (cgi)
 * MySQL version: 5.0.77-community
 * URL: http://wiki.harfordhackerspace.org/index.php?title=Projects

When including images which need to be resized on the fly I am getting this error instead of the resized image.

"Error creating thumbnail: libgomp: Thread creation failed: Cannot allocate memory"

However, smaller images render just fine. I have tried putting a php.ini file in the home directory and increasing the memory_limit to as large as 8gigs and it still did not correct the problem.

—69.250.233.187 23:17, 13 June 2009 (UTC)

I love it when I answer my own questions only seconds after posting for support and hours after trying everything. All I had to do was use GD which was done by setting $wgUseImageMagick = false; in my LocalSettings.php file.

Updating new versions of existing files

 * Moved from Project:Forum Happy ‑ melon 08:28, 19 June 2009 (UTC)

I don't know if this is the right place to post but my company has a wiki we use internally that is a MediaWiki and I am having trouble getting it to recognize and link to a new version of an existing file. So say it is a report that I add to with more data every few weeks but has the same name, I upload the new version and even retype the link and it still goes back to the old report. any advice on how to make it work so I don't have a million versions of what is essentially the same document? thanks (6/18/2009)
 * When you view the file description page, does it show the curent version of the file? Have you tried null-editing (editing and saving with the same content or a trivial change) the file description page? Happy ‑ melon 08:31, 19 June 2009 (UTC)