Help talk:Images

Images not showing with fresh install of MediaWiki: 1.11.0
--Johnp125 01:29, 26 September 2007 (UTC)

The images on my test site are just showing up as a image link. If I click on the link it showes the info on the image file, then if I click on the image link again I see the picture. This happened on 1.10 as well. Check out my LocalSettings.php.

http://wikitest.homelinux.net/wiki2/

 <?php


 * 1) This file was automatically generated by the MediaWiki installer.
 * 2) If you make manual changes, please keep track in case you need to
 * 3) recreate them later.
 * 4) See includes/DefaultSettings.php for all configurable settings
 * 5) and their default values, but don't forget to make changes in _this_
 * 6) file, not there.
 * 1) file, not there.

if( defined( 'MW_INSTALL_PATH' ) ) { $IP = MW_INSTALL_PATH; } else { $IP = dirname( __FILE__ ); }
 * 1) If you customize your file layout, set $IP to the directory that contains
 * 2) the other MediaWiki files. It will be used as a base to locate files.

$path = array( $IP, "$IP/includes", "$IP/languages" ); set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path );

require_once( "$IP/includes/DefaultSettings.php" );

ini_set( 'memory_limit', '20M' );
 * 1) If PHP's memory limit is very low, some operations may fail.

if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } } $wgDisableOutputCompression = true;
 * 1) Uncomment this to disable output compression

$wgSitename        = "Wiki";

$wgScriptPath      = "/wiki2"; $wgScriptExtension = ".php";
 * 1) The URL base path to the directory containing the wiki;
 * 2) defaults for all runtime URL paths are based off of this.


 * 1) For more information on customizing the URLs please see:
 * 2) http://www.mediawiki.org/wiki/Manual:Short_URL

$wgEnableEmail     = true; $wgEnableUserEmail = true;

$wgEmergencyContact = "root@localhost"; $wgPasswordSender = "root@localhost";

$wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true;
 * 1) For a detailed description of the following switches see
 * 2) http://www.mediawiki.org/wiki/Extension:Email_notification
 * 3) and http://www.mediawiki.org/wiki/Extension:Email_notification
 * 4) There are many more options for fine tuning available see
 * 5) /includes/DefaultSettings.php
 * 6) UPO means: this is also a user preference option

$wgDBtype          = "mysql"; $wgDBserver        = "localhost"; $wgDBname          = ""; $wgDBuser          = ""; $wgDBpassword      = "";

$wgDBprefix        = "";
 * 1) MySQL specific settings

$wgDBTableOptions  = "TYPE=InnoDB";
 * 1) MySQL table options to use during installation or update

$wgDBmysql5 = false;
 * 1) Experimental charset support for MySQL 4.1/5.0.

$wgDBport          = "5432"; $wgDBmwschema      = "mediawiki"; $wgDBts2schema     = "public";
 * 1) Postgres specific settings

$wgMainCacheType = CACHE_NONE; $wgMemCachedServers = array;
 * 1) Shared memory settings

$wgEnableUploads      = true; $wgFIleExtensions = array('doc','odt','ods','jpeg','gif'); $wgStrictFileExtensions = false; $wgMimeDetectorCommand = "file --brief --mime"; $wgAllowExternalImages = true; $wgAllowExternalImagesFrom = 'http://wikitest.homelinux.net/';
 * 1) To enable image uploads, make sure the 'images' directory
 * 2) is writable, then set this to true:

$wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert";


 * 1) If you want to use image uploads under safe mode,
 * 2) create the directories images/archive, images/thumb and
 * 3) images/temp, and make them all writable. Then uncomment
 * 4) this, if it's not already uncommented:
 * 5) $wgHashedUploadDirectory = false;

$wgUseTeX          = false;
 * 1) If you have the appropriate support software installed
 * 2) you can enable inline LaTeX equations:

$wgLocalInterwiki  = $wgSitename;

$wgLanguageCode = "en";

$wgProxyKey = "4eb987fbb66c0de546968ebb2a55cbb4b08d1f7b8e39e5c9d6b56194641ef3ac";

$wgDefaultSkin = 'monobook';
 * 1) Default skin: you can change the default skin. Use the internal symbolic
 * 2) names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = "";
 * 1) For attaching licensing metadata to pages, and displaying an
 * 2) appropriate copyright notice / icon. GNU Free Documentation
 * 3) License and Creative Commons licenses are supported so far.
 * 4) $wgEnableCreativeCommonsRdf = true;
 * 1) $wgRightsCode = ""; # Not yet used

$wgDiff3 = "/usr/bin/diff3";

$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) ); $wgCacheEpoch = max( $wgCacheEpoch, $configdate ); require_once("extensions/PdfExport/PdfExport.php"); require_once("extensions/pdfbook.php"); $wgShowExceptionDetails = true; 
 * 1) When you make changes to this configuration file, this will make
 * 2) sure that cached pages are cleared.


 * MediaWiki: 1.11.0
 * PHP: 5.0.4 (apache2handler)
 * MySQL: 4.1.11

External Images
Is it possible to embed external image into the page? I can not find a way to do that. Is there a reason why this is not implemented? --unattributed


 * Sure, just use single brackets around the URL of the image -- e.g. .  If the $wgAllowExternalImages configuration setting is "true" on the server, external images will be pasted directly into the page.  You don't have access to image resizing or any of those goodies when using an external image, however -- the image is pasted verbatim.  Most MediaWikis (especially modern ones) have this feature set to "false" because phishers can use various schemes like HTTP referer links to gather your personal data and cookies. --Jtgibson 01:46, 11 December 2006 (UTC)

hi all,

is there an extension for mediawiki, that´s make it possible to initegrate images directly in the wiki-page, without uploading them first as attachment ?

thx for the infos,

D.

Images linking to something else than the Image page?
Is it possible yet to have images link to something else than the Image: page? Guaka 21:15, 28 September 2006 (UTC)
 * Not directly, but see template:click for a possible solution. --HappyDog 00:35, 29 September 2006 (UTC)
 * The easiest hack is simply to allow external images and place your pict file in a directory close to your wiki and type for instance: /../images/safari.png 81.221.220.246 11:34, 22 July 2007 (UTC)

I'd also request this feature be added. Right now, the Pluto article uses the template w:en:Template:ImageMap Pluto Compared2.jpg in its text to display a clickable thumbnail of various moons. The "Enlarge" link in the caption needs to take the reader to an alternate (full-sized) template page (not created as I write this) instead of the contained image's page. Urhixidur 14:17, 10 May 2007 (UTC)

Problem with uploading images.
When I try to upload an image, it first gives me a warning that the file is bigger than the reccomended size, so I click ignore. Then, when I see the image, about the bottom 3/5ths of the image are distorted. I have had similar results with different images, although there were different forms of distortion. Can anyone help me? --Fezir 01:04, 28 October 2006 (UTC)

Incomplete GD library configuration
Also, when I make thumbnail pictures with working pictures, it says "Incomplete GD library configuration: missing function imagecreatefromjpeg" Can anyone help with that one, too? --Fezir 01:16, 28 October 2006 (UTC)


 * At my system (Fedora Core 6) a simple "yum install php-gd" helped to solve this problem. I think this is a image-creation library for php that was not installed.

Images with URL without proper suffix
I know that Mediawiki can link to external images by simply writing the URL in the text (if enabled by admin). The image is detected by checking the suffix, I guess. But how do I embedd images without proper suffix? Example: https://bugzilla.mozilla.org/attachment.cgi?id=233007

-- Daniel 84.58.158.124 16:24, 7 December 2006 (UTC)

Images Code Broken by UseTidy enabled
I have enabled UseTidy in the LocalSettings.php and now the code generated for the images is broken. It appears that some of the open and closing brackets of the HTML code is translated incorrectly into the & gt; and & lt; codes. Full details can be found here: Manual_talk:$wgUseTidy --Dr DBW 23:39, 7 December 2006 (UTC)

Resizing Images Caveat
At least in MediaWiki 1.6.7, you cannot include both a "frame" option and a "***px" option; the frame tag displays the full image and ignores resizing. Took me ages (and even a couple bad support tickets to my site administrators) before I found this out. --Jtgibson 01:40, 11 December 2006 (UTC)

Number of Images in a row
Is there a way to limit it to three instead of four? 80.203.76.158 17:00, 14 December 2006 (UTC)

Self Updating Gallery
Is there a way to create a Gallery, such as the one on my main page at Plant Photos Wiki, but instead of updating it by hand, have the gallery automatically insert the 4 most recently uploaded photos (thumbnails of, and link to image description)?

--PlantPhotos 17:16, 25 January 2007 (UTC)

Resize gallery thumbs
Is there a way to set the thumb-size oft the pics in the gallery (like )?


 * I have obtained good results using DPL extension. First I created a template for image scaling, then I used such template in format clause of DPL. The output layout of DPL is based on html table. --GB 19:59, 24 November 2007 (UTC)

Multiple Image Namespaces
Is there a way to have multiple namespaces for images so that images can be grouped and access controls can placed on them via group permissions? Currently as far as I can tell, pages in namespaces can have access controls put on them but since images are all in one common namespace, images in the pages cannot have access controls placed on them.


 * No. Currently only one image namespace is allowed. --HappyDog 16:00, 19 April 2007 (UTC)

Align problem
Is it possible to align images that are external ? For instance to align an image on the right ? Using an internal image one would write: but when using the plain /images/cowboys.jpg form how does one align ? XApple 21:55, 14 July 2007 (UTC)

Not able to view images of pixels more than 600*800
Hi ALL

The error that i get: Error creating thumbnail: The system cannot find the path specified. Size of this preview: 800 × 600 pixels Full resolution (2048 × 1536 pixel, file size: 813 KB, MIME type: image/jpeg)

And there is a blank grey screen, but when i click on the full resolution link, the image can be seen.This uploaded image can be seen nowhere on the wiki, even thumbnails give the same error.

Please help me on this ! --Ankit.madan 07:53, 7 September 2007 (UTC)

Wrong option "border"
As written in the line:

The option "border" does not function. A few lines below, the correct option called "frame" is named. The Image-Tag information should be corrected to