# Help talk:Images and other uploaded files

I cannot upload PDFs to my wiki. I am logged in as a sysop. I can upload images just fine. The research I have done leads be to believe these changes in LocalSettings should do the trick, but they don't... The public directory is now 777. I don't an error message.

$wgEnableUploads = true;$wgAllowExternalImages = true;
$wgAllowCopyUploads = true;$wgAllowImageMoving             = true;
# $wgUseImageMagick = true; #$wgImageMagickConvertCommand = "/usr/bin/convert";
# allow more file types:
$wgFileExtensions[] = 'pdf'; # trying to get pdfs to work$wgVerifyMimeType = false;
$wgStrictFileExtensions = false;$wgCheckFileExtensions = false;
## $wgMimeDetectorCommand = "file -bi"; ini_set( 'memory_limit', '64M' ); /** This is a flag to determine whether or not to check file extensions on upload. */$wgUploadSizeWarning = true;


Any advice? --Two7s clash 16:06, 23 April 2010 (UTC)

## Different languages

I cannot figure out how to take a free image from an article on the english wikipedia and use it on the spanish wikipedia article on the same topic. I would think you could just type in the file name and it would just work in any language since its uploaded to wikimedia commons, but aparently that isn't the case. {{http://es.wikipedia.org/wiki/Rub%C3%A9n_Blades}} and {{http://en.wikipedia.org/wiki/Rub%C3%A9n_Blades}} specifically. --Kraftlos 06:28, 29 November 2007 (UTC)

Those are dead links due to the braces, working links are http://es.wikipedia.org/wiki/Rub%C3%A9n_Blades and http://en.wikipedia.org/wiki/Rub%C3%A9n_Blades . What makes you think the image is on Commons?--Patrick (talk) 10:23, 29 November 2007 (UTC)

## FTP large amount of files?

I have a very large amount of image files that I want to upload to my wiki site. Using the File Upload through the wiki will take ages to do this. Can I do something like FTP complete directories of image files to the images directory of the wiki, and then somehow get the wiki to recognize these images? This would save heaps of time and effort. Thanks for any help on this. --JohnE 00:18, 13 May 2006 (UTC)

I have this problem as well. Uploading images one by one takes ages... Is there some work around to upload several images at a time???

Thanks,

Joey, The Netherlands 13:51, 22 May 2006 (UTC)

I've been looking around also for this... Nad I found something here: http://commons.wikimedia.org/wiki/Commons:File_upload_service/Script

## External links with brackets can now be put in captions of thumbnail images

So have removed the section that mentions this is not possible CharlesC 14:53, 5 April 2006 (UTC)

Great. Still, not even the caption attribute seems to work in my version of MediaWiki (1.5.7). Perhaps, when mentioning new features, you might want to note which version they are introduced in. Not everyone uses the same version as you. Not everyone can use the most recent version. Not everyone wants to. --Swift 21:35, 18 July 2006 (UTC)

## this help page

• Very long, and repetitive for a "man page"... we can do a link for a Quick-reference here?

## Image modification/editing

I'm trying to determine if there's a smooth way to be able to modify the original diagram that produced a gif or jpg. Here's the path I go through to create an image for posting on a Wiki.

• The diagram is created in OpenOffice Draw.
• Export diagram to gif format.

Now I want to modify the diagram and I go through the cycle again. That's not too bad, but it gets really cumbersome when someone else wants to modify the diagram. The original diagram could be stored in a version control system, but it would be nice to have everything on the Wiki. One solution we are trying is uploading the original diagram to the Wiki and add a link in the gif image page to the original document. Here's the process we have to go through and I think you'll agree it's not very smooth.

• Select the link to the original document. This brings it up OpenOffice Draw.
• Make changes.
• Save original document to local disk.
• Export to a gif on local disk.
• Upload original document to Wiki.
• Take a deep breath and feel like there's gotta be an easier way!

Does anyone have a better way to get this done?

## PDF upload problems / empty file error

I have modified my localsettings.php as advised, but I cant get some PDF uploads to work. Some PDFs work fine... some don't and I can't see a pattern.

This is the error i get:

The file you uploaded seems to be empty.
This might be due to a typo in the file name.


## File size limit

Is there anyway to change the filesize limit on mediawiki?

--maestrosync who can't be bothered logging in


## image attributes without imagemagick

Is it possible to add the height and width attributes to an image without actually resizing the image in imagemagick? I just want to make an image take up less screen space. This is valid HTML, I just don't know how to do it from MediaWiki.

I currently have wgUseImageResize set to false, because I don't have ImageMagick installed.

If I use the tag [[Image:MyImage.jpg|100px]], I get the image at full size with the caption "100px".

If I try setting wgUseImageResize to true, the page dies because it can't find ImageMagick.

How can I specify the height and width tags?

As far as I know, the current code doesn't try to do this; I'm thinking of reorganising that bit of code though, so this may become available in a future version (as a fallback for those without ImageMagick). - IMSoP 14:59, 30 Sep 2004 (UTC)

## No protection against (even inadvertent overwriting)

"When a file is uploaded with the same name as an existing one, the old one is replaced. If that is not the intention one has to check in advance that the same name does not exist yet, because currently the system does not warn against overwriting"

1. This is an unfortunate situation, as it offers no protection against even unintentional overwrites. Metawiki should at the very least offer up a warning that the file in question already exists and prompt the user for replacement. That's assuming that the users are trustworthy.
2. Will "protecting" the Image "desc" page protect the image?
--Memobug 22:08, 19 Jul 2004 (UTC)
No. But you can still restore the old image. Walter 22:12, 19 Jul 2004 (UTC)

## Enable ALL File Extensions For Upload

Guys it is fast and simple process and 100% tested. Just add following line in "\include\LocalSettings.php" file

$wgFileExtensions = array( 'png', 'jpg', 'jpeg', 'ogg','doc','xls','ppt','mp3','sxc','pdf' ); user:Rajan Enjoy I'm running a local wiki at work. We want to upload scripts (with various extensions on the default blacklist) and arbitrary filetypes. I took a belt and suspenders approach here, since I couldn't find any good documentation of this, only the source code itself. I added the following to my LocalSettings.php: # Enable all file extensions.$wgCheckFileExtensions = false;
$wgStrictFileExtensions = false;$wgFileBlacklist = array();


Is there a better way to do this? What exactly does $wgCheckFileExtensions do? It doesn't seem to behave as I'd expect. I haven't tested this much, however. If someone more knowledgeable happens upon this, it'd be good to cover this, with a proper explanation, in the content page. PatrickFisher 22:24, 11 Nov 2004 (UTC) Is it possible to upload the images using SCP or at least upload them from a URL rather then the harddrive. (So that I could scp them to a server and then upload more quickly.) On a slow connection uploading images even just a few images one by one is really painful. - q. html upload still fails. I get an upload warning of The file is corrupt or has an incorrect extension. Please check the file and upload again. ... ran the html through HTML Tidy to be sure, tried uploading as .xhtml, too. uploaded a pdf without problem. suggestions? -- Adam Katz 17:41, 12 Apr 2005 (UTC) • Yes! Add the following line to your LocalSettings.php: $wgVerifyMimeType = false;


In my case, uploading, say, a PDF just results in the user being sent straight back to the upload page (with no message, no error, and nothing in the upload log). Uploading images is fine. Since the file upload (and uploaded files capabilities) seem to be very (VERY!) keyed towards images only, is it fair to say that non-image (and perhaps non-ogg) files should not be uploaded?

I'm trying to do the same thing the original poster is (set up a private Wiki and allow sharing/attachment of files to articles). Has anyone been able to get this working?

-- IanSchorr 1:56, 2 May 2005 (UTC)

## Using English images in other language Wikipedias

Is it possible to use an image that's in an English Wikipedia article directly in an Esperanto article? I'm trying to translate some articles into Esperanto, and it'd be nice to have the photos without having to reupload them.

## Flash (.SWF) Files?

Is it possible to upload Flash files to MediaWiki (altering the LocalSettings.php file that's mentioned in the Help article)? If yes, is it possible to embed them in articles?

I don't believe it is possible right now (as of 1.5 beta1), but I've heard of people who have hacked the appropriate areas to make swf files appear in the proper media tag instead of the image tags like regular images.. so something like this should be on the radar for someone to make as an official feature. One day. =) -- Sy / (talk) 23:56, 28 Jun 2005 (UTC)
See the Flash extension. -- Super Sam 14:10, 2 January 2006 (UTC)

## MetaPost diagrams

Passionate plea: It would be wonderful to have support for scalable vector graphics via MetaPost. We are already using TeXnology for rendering mathematical formulas, so why not also use the TeX community's very elegant vector graphics engine? In contrast to many other format alternatives (SVG, PDF, etc.), MetaPost was specifically designed to be easy to use when diagrams are edited with plain-text editors. MetaPost graphics should not be uploaded as separate files, they should be included into the main text, as it happens already with mathematical formulas.

MetaPost is well established, widely used, and freely available as portable software. It is a very easy to learn elegant high-level graphics description language that the mpost interpreter converts into embedded postscript (which in turn is easy to raster via ghostscript). MetaPost descriptions are ideally suited to be manipulated with a plain-text editor. The language allows authors to select a level of abstraction appropriate for the diagram at hand. -- Markus Kuhn, 9 October 2005

## Making images fit the defined area

I have a predefined css for my image and am using the [[Image... to add my image to the left of the document. But this picture is smaller than the defined area. Is there a way to make the image fit inside the box please? something like stretch? Thanks.

Yes, as the page says, you can enlarge with |thumb|width in pixels px|.--User:Patrick | talk 21:57, 24 May 2005 (UTC)

Never mind

## Crop

Is there a way to only display a portion of an image? This would be useful where different parts of the image are useful in different articles. An example is Image:Phase diag iron carbon.PNG, which I'm using as a practical example in austenite, peritectic, and as explanation for the chemical reactions in cast iron and steel. Each of these topics emphasizes a different section of the diagram, so that it would be nice to just give four coordinates and have only a section show in the thumbnail. Can this be done? --en:user:Polyparadigm

## Super-sections I and II

I provisionally divided the article into super-sections <32K for easy copying by super section, for editors who cannot copy all at once.--Patrick 07:26, 3 August 2005 (UTC)

## embedding images dynamically generated by external servers depending on template parameters

Wow... what a headline! I'd like to enable automatic map inclusions on wikitravel. We (german wt) use at the moment maps from demis map server. It's possible to generate a variable link in template but i didnt manage to include the map generated from demis depending on the parameters in the query string in the following url:

http://www2.demis.nl/wms/wms.asp?Service=WMS&WMS=BlueMarble&Version=1.1.0&Request=GetMap&BBox={{{1}}}&SRS=EPSG:4326&Width=400&Height=400&Layers=Earth%20Image,Borders,Coastlines&Format=image/gif

where '{{{1}}}' is sth like "40,50,60,70". i tried it with an img src tag and also just as plain url... Is this planned to implement that one day? FlorianKonnertz 05:34, 8 August 2005 (UTC)

## Embedding images without using upload feature?

I have several images, that need to be displayed along with the text for my tutorial pages. I would rather use my ftp client to just upload all the images into an "images" directory rather than using the built in upload function. Then I'd like to embed them in my page rather than just link to them.

Is there any way to do this?
Regards.

See Help:Images_and_other_uploaded_files#Embedding_external_images.--Patrick 20:04, 29 August 2005 (UTC)

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://(www\.)?example\.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|swf|png)$- [F,NC] I put these lines in my base .htaccess file, but it breaks image linking for my wiki. I had to put a RewriteEngine off in the wiki directory to get it to work again. Am I doing something wrong here? ## Image Page Customization Hi. I'm considering using the MediaWiki as the engine to run the majority of my website. I'd like to import a lot of images. I don't really like how the image page itself looks. I'd prefer the title to be something besides Image:image1.jpg. Is it an easy modification to allow me to name images whatever I want, like "London Bridge" or something like that? I suppose I could always create an additional page called "London Bridge" and link to the image, but that seems like a waste of resources. Any suggestions? --Boone 13:53, 9 September 2005 (UTC) I came up with a hack. Perhaps you can tell me if this will break anything else or cause a security problem. In the content page for the image, I have a line called: • Title: London Bridge Then I added a constructor to ImagePage.php: function ImagePage( &$title ) {
global $action; Article::Article($title );
if ($action=='view') { // scan item content for *Title: and use if available$strText=Article::getContent(false);
if (preg_match( '/^\*Title: (.*)$/mi',$strText,$matches))$this->mTitle->mPrefixedText=$matches[1]; } }  The reason I check for the 'view' action is because other actions like 'watch' were taking the mPrefixedText value and building bad links with it. --Boone 20:00, 9 September 2005 (UTC) ## Wikimedia Foundation's policy on image hot-linking? Does anyone know of the Wikimedia Foundation's policy of hot-linking images on the Wikimedia servers? I know that hot-linking images on other people's servers is often considered to be rude and an act of leeching. However, I would like to hear of the Wikimedia Foundation's stance on this. --169.229.98.90 08:43, 7 November 2005 (UTC) ## Thumbnails not being created Any suggestions on thumbnails not being created? I have the appropriate sections in LocalSettings.php activated and have the correct folders created in images, with 777 privileges set. I can also call convert from the command line. However when I try and use a thumbnail of an uploaded image I get the thumbnail box and the alt text... • I also have this problem. Does anyone know what the deal is? 24.57.53.51 02:09, 14 February 2006 (UTC) • I'm getting the same problem. It appears that if I try to have Mediawiki automatically scale the image, or manually scale the image below 100%, I get the same blank thumbnail box. If the image is 100% or larger, everthing works as expected.--Zadzagy 21:26, 9 March 2006 (UTC) • UPDATE: I've downloaded, compiled and enagled ImageMagick, but am still getting the same issue. My LocalSettings.php file has been modified accordingly. Weirder and weirder...--Zadzagy 20:51, 10 March 2006 (UTC) • Same problem here. no matter what I do, the thumbnails don't get converted... • Same here as well. I've tried re-uploading the file, no dice. I'm currently running 1.6.5. In a previous version (1.5.7) that I'm also running, thumbnails display fine. • same here if I try to add a thumbnailed image all I get is the message"Error creating thumbnail" and the alt text...any thoughts? http://untold-legends.com/wiki/index.php?title=Titan_Zero_Fleet_Database • I'm also having the same issue. Wiki just seems to ignore anything except the image: part 72.164.229.201 22:55, 14 July 2006 (UTC) • Here is the solution: In the file include/DefaultSettings.php set variable$wgUseImageResize to be "true"
I think you should rather set that variable in LocalSettings.php, because mw:Manual:Configuration settings says: "Never edit DefaultSettings.php; copy appropriate lines to LocalSettings.php instead and amend them as appropriate." --Teratornis 19:32, 3 January 2007 (UTC)
• I am getting the same issue on Redhat. I just downloaded and installed ImageMagick and it is as if its not there. I even tried the above recomendation to edit the default settings file.
• Have you checked your error logs? I had the same problem. In my case, it was because the web host had disabled the PHP functions shell_exec() and escapeshellarg(), which are required for the section of code in Image.php that uses IMageMagick. If you don't have access to your error logs, you can change the line "$wgUseImageMagick = true;" in your LocalSettings.php to "false", which will force the use of the GD Library rather than ImageMagick. If the images appear, the problem probably lies with either the disabling of those functions or elsewhere in the code associated with ImageMagick. • I was having the same problem, then I discovered that if i had the file extension (in my case .jpg) in UPPER CASE (.JPG) the thumbnails displayed and worked correctly. • I was having a problem with thumbnails and added the line "$wgUseImageMagick = false;" to my LocalSettings.php file and that solved the problem. -February 4, 2012.

## MimeMagic does wrong file association

Hello,

I have this funny problem with MediaWiki 1.5.2. I want to enable to upload all kinds of office files. I have done this

$wgFileExtensions = array('gif','png','jpg','jpeg','xls','doc','ppt','pdf');$wgMimeDetectorCommand= "file -bi"; #use external mime detector (linux)

But when I try any office documents besides word I get an error. In the log see that MimeMagic tries to associate it with msword. Is there a workaround?

UploadForm: watchthis is: '' WebRequest::getFileName() 'bla.ppt' normalized to 'bla.ppt' Block::load: '192.168.200.121', '2', 1 MimeMagic::MimeMagic: loading mime types from includes/mime.types MimeMagic::MimeMagic: loading mime info from includes/mime.info MimeMagic::detectMimeType: magic mime type of /tmp/phpW7MOCz: application/msword MimeMagic::guessMimeType: final mime type of /tmp/phpW7MOCz: application/msword SpecialUpload::verifyExtension: mime type application/msword mismatches file extension ppt, rejecting file ** private caching; ** Request ended normally

--

--141.84.121.166 09:56, 4 August 2008 (UTC)

## Error when updating/deleting an image

I get this error when I try to upload an image :

The file you uploaded seems to be empty. This might be due to a typo in the file name.


I have already changed the memory_limit and the two other parameters to 30Mo and I am not able to update even small images (but uploading new images work well).

When I try to delete an image I get this error :

There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking.
Please hit "back" and reload the page you came from, then try again.


Note that I am the sysop of my wiki

do I make a mistake ? is this a bug ?

Possible answer: check user rights on the images folder. I had the same problem that uploads didn't work. IUSER_... has to have modify rights.

## external images

The external images show up as urls for me. Is this just me, the fact that I am not logged in, or a problem? Smileyface11945

On Meta embedding external images has been disabled. The text is also used on other projects, it demonstrates whether embedding works or not.--Patrick 01:04, 30 November 2005 (UTC)
So the examples at the bottom of this section are now not working. For illustrative purposes I guess we could cheat and have the rendered examples actually linked to internal images. Might cause confusion though. Any thoughts. Otherwise we'll need to remove the example. At the moment it's broken right? -- Harry Wood 09:44, 22 November 2006 (UTC)
It says "The examples in what follows are intended for projects in which embedding is enabled." The wikitext should be the same on projects where it is working and where it is not.--Patrick 14:24, 22 November 2006 (UTC)

So can this be enabled?

A: Yes. Add the following line to your LocalSettings.php: wgAllowExternalImages = true; [Firefox 1.5: Firefox does not display the images only the alt text if you have enabled the "Content option": Download from the originating website only. ] ## Unlinkable images Hi, I want to have an image on a page as with a locator map with links on top of the image. It works (sort of) but I don't want the underlying image to be a link as well (to prevent user error). Is this possible? --Kwoot 09:15, 22 December 2005 (UTC) ## The upload directory (/home/ninja999/public_html/mwiki/images) is not writable by the webserver. What does this mean? Go here: http://www.nictitatingrabbit.com/mwiki/index.php/Special:Upload to see. Why would this happen? The upload directory (/home/ninja999/public_html/mwiki/images) is not writable by the webserver. [EDIT] I changed the permissions on the whole images folder to 777 (All permissions) and it works now. It would be a better idea to chmod 755 it instead ## Images replaced In the section about image links, I replaced Image:Canterbury Tales.png with a free image of broccoli from Commons. By using a free image, I shoould be able to copy the page to English Wikibooks. --Kernigh 01:39, 30 December 2005 (UTC) ## Image borders Is it possible to add borders to images, using wiki syntax? (similar to style="border:solid 1px #000000;") I know about "thumb" and how that places a border, but don't want the caption and second border. Thanks. --Kmf164 00:36, 8 January 2006 (UTC) ## MIME types of uploaded files Where are files' MIME types stored? I've uploaded all the images for my wiki via FTP, because there were already database entries for them left over from the previous version of wiki, and now they have unknown MIME type. This causes them to show up "warped" when I embed them with "frame" parameter and prevents creation of thumbnails. The solution is to set MIME type for all files to image/png (as I don't have files of other types in my wiki). How this can be done with MySQL query? --Tweenk 00:50, 13 January 2006 (UTC) ## Incorrect information re updating images? When a file is uploaded with the same name as an existing one, the old one is replaced. If that is not the intention one has to check in advance that the same name does not exist yet, because currently the system does not warn against overwriting. I tried this at the Wikimedia Commons and it didn't work. I got an error saying "A file with this name exists already; please go back and upload this file under a new name." How can I update my uploaded image? Simetrical 04:26, 17 January 2006 (UTC) This is still true. See question on commons:Commons:Help_desk#Upload_warning This answer is now archived here, search for "upload warning".Travb 18:34, 25 April 2006 (UTC) Using a google search for two phrases ("A file with this name exists already" "please go back and upload this file under a new name") I discovered that this message exists at MediaWiki:Fileexists-forbidden. As I speculated on Help desk, this seems to be the answer to difficulties tracking changes to images: I guess images are now immutable and to change an image you have to also change the text of all of the pages referencing the image. The only problem is the revision history of the image description page, I guess. And of course, this is not documented anywhere I have found yet (still looking). The page we are discussing is the obvious place for the documentation. Archimerged 18:03, 25 January 2006 (UTC) No, according to an archived discussion at commons found further down that google search, my problem is I just created my commons account and am not yet allowed to overwrite images. This needs to be documented on the help pages. Guess I'm elected... Archimerged 18:13, 25 January 2006 (UTC) ## Thumbnails dont work i can add an image to a page and upload it and view it fine in the file view but no matter what i do the image will not display in the page as a thumbnail - it just has the blue question mark (or the red x for pc users) where the image is supposed to be any ideas please? ## Embed Camtasia SFW flash video, video controller bar, and xml config I'm sure this is possible, although I haven't figured it out myself yet. Camtasia Studio creates flash videos for training/etc. I could use the Flash extension if I just wanted to show the swf files, but if I want to include the control bar (pause, play, stop, progress bar, about box, etc.) -- I need something else. in the html page, the relevant code for displaying the swf video with control bar is as follows: <table border="0" cellpadding="0" align="center" width="640"> <tr> <td ><object id ="flashMovie" codeBase ="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height ="497" width ="640 " classid ="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT> <PARAM NAME="_cx" VALUE="26"> <PARAM NAME="_cy" VALUE="26"> <PARAM NAME="FlashVars" VALUE="csConfigFile=1 Install Eclipse Web Tools_config.xml"> <PARAM NAME="Movie" VALUE="1 Install Eclipse Web Tools_controller.swf?csConfigFile=1 Install Eclipse Web Tools_config.xml"> <PARAM NAME="Src" VALUE="1 Install Eclipse Web Tools_controller.swf?csConfigFile=1 Install Eclipse Web Tools_config.xml"> <PARAM NAME="WMode" VALUE="Window"> <PARAM NAME="Loop" VALUE="false"> <PARAM NAME="Quality" VALUE="high"> <PARAM NAME="SAlign" VALUE=""> <PARAM NAME="Menu" VALUE="-1"> <PARAM NAME="Base" VALUE=""> <PARAM NAME="AllowScriptAccess" VALUE="always"> <PARAM NAME="Scale" VALUE="ShowAll"> <PARAM NAME="DeviceFont" VALUE="0"> <PARAM NAME="EmbedMovie" VALUE="0"> <PARAM NAME="BGColor" VALUE="#FFFFFF"> <PARAM NAME="SWRemote" VALUE=""> <PARAM NAME="MovieData" VALUE=""> <PARAM NAME="SeamlessTabbing" VALUE="1"> <EMBED src ="1 Install Eclipse Web Tools_controller.swf?csConfigFile=1 Install Eclipse Web Tools_config.xml" flashvars ="csConfigFile=1 Install Eclipse Web Tools_config.xml" quality ="high" bgcolor ="#FFFFFF" width ="640" height ="497" type ="application/x-shockwave-flash" pluginspace ="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> <br></td> </tr> </table>  In the above example we have the following files: • 1 Install Eclipse Web Tools_controller.swf • 1 Install Eclipse Web Tools_config.xml • 1 Install Eclipse Web Tools.swf (the actual training video) I see 2 ways to do this: 1. Big Hack: Somehow escape to raw html inside the wiki markup and point to the files located on another server or absolutely located on this server. 1. Upload the 2 swf files, and xml file like normal. Then write a <camtasiaFlash>file=movie_name.swf|config=xml_file_name.xml|controller=movie_name_controller.swf</camtasiaFlash> tag to parse out the html. Please share ideas you all may have, I look forward to learning from you all. Jcobbers 14:05, 23 January 2006 (UTC) ## Proposed revision to the ==Uploading== section I have written a proposed replacement for the Uploading section of this page. Feel free to make corrections in place, or if you can vouch for the accuracy (so far I haven't been able to upload a replacement image but I write as if it is still possible), to replace the Uploading section with the new version. Archimerged 23:36, 25 January 2006 (UTC) ## How to link an image to an external URL? I want to make an image to link to an external website. It's something like the following HTML code: <a href="http://www.external.com"><img src="http://www.external.com/logo.png" alt="External Website"></a> I read media wiki help document and can not find a way to do this. How should I achieve this? Or this is not possible?? ## upload folder permissions issue i've enabled uploads in the LocalSettings.php file and changed the permissions on the upload folder to 777 (everything checked) and still I get the following error message: The upload directory (***/images) is not writable by the webserver. Is this a webhost-related problem or something I am overlooking? Any help is much appreciated! Thanks in advance. ## bugzilla:05143: example with 100x150px option bugzilla:05143 – "Allow aspect ratio of an image to be specifiable within a page" Size {width}px or {width}x{height}px (e.g. 50x40px, would limit width to 50 and height to 40). • etc. Best regards Gangleri · Th · T 19:26, 10 April 2006 (UTC)  75x150px - not I'm not sure who started the widthxheightpx stuff on w:WP:EIS, maybe it was me, and then it was a hallucination: The software accepts anything before px, even %, but unfortunately it uses only the leading digits to get an absolute width. So 22x55px has the same effect as 22px, and 50%px results in 50px. -- Omniplex (w:t) 23:28, 10 April 2006 (UTC) • Dear Omniplex! I hace no other comment on your note: Most bugs are found either by typing "erroneous code" (from the developers point of view / according to a syntax if the syntax is specified to some degree) or by exhaustive (to what level) testing. I would suggest that you report the bug at bugzilla: at least as a "reminder", as a "good to know". Such issues could be reported when "spacial:WrongSyntax" would be implemented; see bugzilla:05478. What else should the parser do? Best regards Gangleri · Th · T 09:19, 11 April 2006 (UTC) notes: 1. embeded the original table in another with "cellpadding=5" and the background as defined for this namespace in MediaWiki:Monobook.css; 2. the embeding table must have the same "align="foo"" as the original table ## Ambiguity of the first paragraph The first paragraph is quite confusing: The last sentence: "For uploading multimedia files that can be used in all Wikimedia Projects, you can use Wikimedia Commons." implies very strongly that the Wikimedia commons should only be used for multimedia files that are used in all wikimedia projects, and that there is another location for files which are intended only for use in wikipedia. However, there is no reference in the entire article to the location for wikipedia-only files! I'm still not convinced that one doesn't exist, because of the way that paragraph was constructed. So if there is, then please add a link to it in the first paragraph, and if there isn't, then please remove this ambiguity from the paragraph. Thank you. 142.167.253.123 15:15, 22 April 2006 (UTC) Update: After having been directed to the upload page I have changed the first instance of the word 'upload' into a link to that page. Also, Patrick Has graciously changed the wording of the paragraph to make it more clear. Thank you, patrick. Uniqueuponhim 05:20, 25 April 2006 (UTC) (formerly 142.167.253.123) ## Watermarking I want to include some images on my wiki, but have some of them watermarked. Is it possible to have imagemagic watermark images in a category? ## How to delete images How can I delete an image? If you are a sysops on the wiki, then a "Delete Page" appears at the bottom of the page for all images. Simply click on that link, follow the instructions --Dr DBW 23:59, 7 December 2006 (UTC) ## A one-pixel border I would love to put a single-pixel border around an image. One pixel wide, black, hugging the image so that there is no gap. Is there a way to do this? I assume I would have to use a table. If someone could post the code, or an example in reply, I would be eternally grateful. 81.178.91.147 18:32, 17 June 2006 (UTC) use css --User:AaronPeterson ## External Images on same server I have the need to be able to link to images that exist on the same server as my mediawiki. I used to be able to accomplish this using verion 1.4.12 by allowing external images and embedding something like the following into a page: http:/custom/2001.png When I upgraded to verion 1.7, that form no longer worked. Instead, I have to include the entire domain name, e.g., http://domainname.com/custom/2001.png. This is annoying for the following reasons: 1. There are a LOT of pages that need to be changed to the new format 2. It is more to type 3. I have a slow connection so when at home, I connect to my own machine using http://localhost/ however, the wiki pages will still be looking for images at http://domainname.com/custom/ etc.. whereas before, the links to images were simply relative, meaning that it will take considerably longer to load images when I am sitting at the machine. Where was this changed? How can I change it back? Thanks ## Make ImageList a Gallery How can I make the page that lists the uploaded files (Special:ImageList) into a gallery (i.e. list thumbnails of the images)? The preceding unsigned comment was added by 69.157.232.146 (talk • contribs) 14:27, 27 July 2006 (UTC) You might be interested in the Special:Newimages page. --Swift 10:44, 28 July 2006 (UTC) {{special:Newimages/3}} creates: User group process.svg Bdamokos 18:18, 11 May 2014 189 KB EC Copyright Consultat... LuisV (WMF) 22:37, 13 March 2014 357 KB Wikibooks-logo project... Mxn 06:50, 6 December 2013 19 KB Adamtheclown 10:44, 13 March 2011 (UTC) ## replacement check "When a file is uploaded with the same name as an existing one, the old one is replaced. If that is not the intention one has to check in advance that the same name does not exist yet, because currently the system does not warn against overwriting." that seems to have changed. --en:User:Sarefo 10:35, 29 July 2006 (UTC) ## Modifying image I noticed that the Wikipedia article about Liechtenstein contains a map of Europe where Montenegro still does not appear as an independent country. I downloaded the image and modified it in order to include Montenegro, but seems like I cannot upload it back to Commons with the same name. Is there a way to improve an image while keeping its name, or should I give a new name to the new file and effectively replace the image?--Húsönd 03:03, 6 August 2006 (UTC) ## Commons and external wikies External wikimedia installations (as WikiPAT, http://mitel.dimi.uniud.it/wikipat/ ) can access to Commons images after some proper configuration? WikiPAT is an experimental wiki for pathologists, almost empty so far (see w:it:Wikipedia:Peogetto Medicina/Saletta Morgagni)--Alex brollo 10:04, 22 August 2006 (UTC) I think so, yes. See Help:Interwiki linking for more. This help talk-page is for discussing the contents of Help:Images and other uploaded files. For help on MediaWiki software, see http://www.mediawiki.org/wiki/Project:Help, http://www.mediawiki.org/wiki/Communication and http://www.mwusers.com/. --Swift 17:39, 22 August 2006 (UTC) Well it is the contents of this article that should cover the requirements for getting image to work. However, I doubt this is the case. image.. seems like a standard tag with a standard behaviour in the system... ## Doesn't work at all !? Showing an image from the commons in my wiki does not work. Instead I get a red link that prompts to upload the image on my local project. Any ideas of what might be wrong?? ## how my wiki can support "svg" I can upload a file to my wiki with ".svg" extension but I can not view it. As far as I have searched from internet, I understood that I have to use an external program (like RSVG-imagemagi or Inkspace)to render my "svg" to "png" format. Did I understand truely and do I have to configure any mediawiki files. --Hakanc 13:40, 7 September 2006 (UTC) ## Access to picture informations How can I removed the access to picture informations byc clicking on it ? - I can redirect on the same page but if I use the same image in another page, the redirection can not be change ## Thumbnails will not show. Images show up fine otherwise, but when I put them into a thumbnail they disappear and link is left in its place. They won't even show up in the gallery. It also seems as though this was not always the case. No images are showing this problem until October 14, 2005. http://www.khakain.com/wiki2/index.php?title=Special:Newimages I was having the same problem, then I discovered that if i had the file extension (in my case .jpg) in UPPER CASE (.JPG) the thumbnails displayed and worked correctly. ## Gallery image in Commons Someone moved one of my images to Commons, and now that image does not show up in a <gallery> in an en: page. Putting "commons:" ahead of the image does not make it appear. Perhaps the description of a gallery needs additional information or caveats. (SEWilco 03:55, 26 September 2006 (UTC)) The examples on the help page are also images on Commons. May be there is a size limitation for using commons images in a gallery.--Patrick 11:33, 26 September 2006 (UTC) ## Tutorial This is not a very good tutorial for images. It's too complex (with file upload). Why is File upload stitched on this images page. It should be file uplaod and a note to Images, IMHO. It think this [4] is a much better image tutorial! Kassie 13:00, 23 October 2006 (UTC) ## Need image help. When I try to make a thumbnail image, it says "Incomplete GD library: missing function imagecreatefromjpeg" where the image should be. Can anyone help me? --Fezir 22:21, 30 October 2006 (UTC) I too have a similar problem. When I use the following for image File:KLAIma1.jpg Mahatma Gandhi all I get is a box with the name. What am I doing wrong. 202.83.40.11 16:02, 13 November 2006 (UTC) I'm having the same issue, has anyone found any help or a resolution? --Riluve 13:18, 15 May 2007 (UTC) Me too ... but I solved this issue on a Red Hat RHEL4 system as follows: Some PHP 4.x and 5.x versions of PHP have a bug where the libjpeg is detected but not enabled during the ./configure step; this is fairly prevalent on Red Hat/RHEL/CentOS systems. The fix for this (if you don't want to use ImageMagick) is to recompile PHP. First, find out (from phpinfo()) what the existing ./configure switches were, and add --with-jpeg-dir before --with-gd. make clean ./configure --with-various-switches --with-jpeg-dir --with-gd --with-more-switches make make test #switch to root make install  Afterwards, restart the webserver (for Apache on Red Hat: service apache stop then service apache start ). To test, simply view the File:... page again (no need to upload again). For more information see the comments on PHP: imagecreatefromjpeg (function synopsis) ## Upload is disabled, how enable it ?! Hi, On my Wiki, link "Upload file" doesn't display (I have last French version). I went in 1247 of includes/DefaultSettings.php and wrotewgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'zip', 'rar', 'pdf', 'doc', 'xls', 'mp3', 'wav' ); for letting these files to be enabled, but "upload file" in toolbox still doesn't appear.

Thanks

There's still one more thing to uncomment in your LocalSettings.php --allow or enable file uploads 65.102.153.137 11:35, 3 March 2007 (UTC)

## Changing an image

In the "Inline images" section, I think Image:Wikipedia minilogo.gif should be replaced with a free licenced image, analogous to what was done with en:Image:Example.jpg. I will go ahead with this unless someone objects. Dar-Ape 04:12, 26 November 2006 (UTC)

## ...Windows Victims

1. May contain harmful executables for Windows victims

...Nice hehe

24.92.11.180 16:55, 29 November 2006 (UTC)

Disabling $wgUseImageResize of course prevents the error but also makes images appear huge in my articles (strange, thumbnails in <gallery> still do work). My MediaWiki version is 1.6.8, running on PHP 4.4.4 (apache2handler) and MySQL 4.1.22-max-log. Thanks for any help! --C4d-Jack 10:49, 22 February 2007 (UTC) ## Uploads images ok, but wont display them Hi, I installed mediawiki and can upload images, but I use the Image:asdf.jpg and it wont display. It only shows a link to the image. Please help. Thanks! Check whether the JPEG uses a CMYK colorspace. Apparently, Mozilla-based browsers and some versions of IE cannot display these. Convert them to RGB. See this very informative blog entry: [5] --MichaelHfx 14:55, 28 February 2007 (UTC) ## Using Commons images on Wikipedia when WP already has an image with the same name I've uploaded an image to Commons with a name already taken on Wikipedia. I want to use the image from Commons in Wikipedia, but it will only let me use the same-named WP image. I've tried [[:Commons:Image:…]] and [[Commons:Image:…]] to no avail. Any suggestions? 163.1.151.252 22:40, 2 March 2007 (UTC) AFAIK, at the moment it is not possible to link to a commons image if there is an image with the same name locally on the wikipedia. What you can do is re-upload the picture on Commons using a different name and add the template {{badname}} to the original image to have it deleted. Yonatanh 22:44, 2 March 2007 (UTC) ## Parsing px at the end of the caption [[Image:Example.png|abcde]] shows [[Image:Example.png|abcpx]] shows "abc" is not a number, but any string ending with "px" seems to be treated as a width. Is this a recent change, or has it always been like this? I'm suspecting it may be the cause of an apparent change in functionality with w:Template:Navbox musical artist, where the image shows up redlinked as above when there's a string ending with "px". Pomte 03:43, 2 May 2007 (UTC) ## Gallery bug In the generated HTML all the captions end with <p><br /></p>  This looks very ugly and it should be fixed. Perhaps someone who knows how to file a bugreport with Wikimedia can do so? Thanks, Shinobu 17:23, 7 May 2007 (UTC) P.S. It would be nice if the number of columns would adapt to the width of the browser window / page. ## Aspect ratio It would be useful to be able to modify the aspect ratio of displayed images, especially if they're in svg format. From what I understand, the wiki software doesn't have such a feature at the moment, although it is easily supported by the underlying html. Would such a feature be maded available in the future?--Doron 16:13, 24 June 2007 (UTC) Well??? Is anybody watching this talk page at all?--Doron 10:59, 11 July 2007 (UTC) ## This article sucks! For example; Therefore it is important that the image page on Commons is linked to the local image pages of that image on all projects that use it. On these, even if they have never been created explicitly and therefore have an empty editable part, the "image links" section shows the local pages that use the image. Er... who are you talking to? This page needs to be better... I wonder why I think whining about it here will do any good... how can I help out? I don't know how to reorganize such a 'system page' without 100,000 moderators stamping on my face. --87.160.219.242 18:33, 4 July 2007 (UTC) Why don't you like the quoted paragraph? Is there something you don't understand?--Patrick 22:57, 4 July 2007 (UTC) ## Upload multiple images I really like MediaWiki and try to implement it in the IT dept of my company. I've got Wiki 1.10 set up and running, and now I am moving documentation from MS Word to Wiki. I've dealt with everything except for images. Documentation contains hundreds of them. I'll go nuts uploading them one by one and don't like the idea of uploading them to another folder and using external links. Is there any handy tool or another solution enabling uploading multiple images directly to wiki at once? Or maybe some editor with image copy-paste functionality? Thanks in advance! ## Images stored on a file server I am trying to use images stored on a network drive so they do not have to be uploaded to the wiki server. I have used [file://networkdrive:\filename.doc filename] to link to files such as Word documents etc. Is there a way to do the same thing for images? Thanks! ## Clarify Instructions: Uploading non-image files I'm trying to learn how to keep things tidy in my LocalSettings.php file and on our wiki, so I am new to some of the coding for .php In the "Uploading non-image files" section, I understand the first two instructions and their examples in the preformatted boxes. But just after the Caution statement, there is the suggestion "Even better, add your extension to the$wgFileExtensions array, so that any future changes in DefaultSettings.php get propagated up to your code." But I don't think this statement is clear, given the code in the preformatted box below. Could someone possibly rework this text to make it clearer what the code will help us do? (It may be clear already I just need to made made clear!)

Note that I am taking the second instruction to imply that maybe the code line is not in the LocalSettings.php file and you should add it, with your preferred extension also included in it. Then I am assuming (I know - bad idea sometimes) that the instruction after the caution is trying to show us an alternate way to get our preferred extension into the array - but I am (possibly over-) thinking that you need the array to be there in the first place, so rather than "Even better," the instructions might want to say something like "Alternatively," or something like that. (Hope this helps show how I'm reading the section and where my possible confusion might be.) Part of that confusion is the reference to the DefaultSettings.php because I'm trying to be very cautious and steer clear of that file like I've been instructed!

Thank you for whatever help someone might provide!
--Esgenoopetitj 18:25, 11 January 2008 (UTC)

## External images

Just wondering. How I would embed something like this on a wiki page?

<script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display.js"></script> 75.31.8.130 20:55, 24 March 2008 (UTC)

## Images Will Not Show / Cannot Be Re-Uploaded

"Hello I am user of jatland my problem is when i upload my picture that is disappear & my album picture is also disappear so what i do pl help me. profiles of girls & boys pics also not show pl help me I have big problem thanks regards"

Recently our wiki page dissapeared and we spent months with your techs trying to get it restored. Now that it is restored, we are finding that the imagew will not show. They are linked apropriately (See example 1). They appear in the list of uploaded files but when I click a image filename, I get a page with a clear box (See example 2).

When I try to test it by uploading new images, I still get the same result, a page with a white box. How do I fix it?

### Example 1

http://i26.photobucket.com/albums/c132/zodiac01/imagehelp1.png

### Example 2

http://i26.photobucket.com/albums/c132/zodiac01/imagehelp2.png

## Borders for gallery items?

Is it possible with the current version to put a border (like at w:en:Image:Flag of Monaco.svg#Summary) in a gallery, for e.g. w:en:Gallery of flags by similarity#Red (or maroon) and white? -- Jeandré, 2008-09-02t13:42z

## How to adjust thumbs and floats?

Imagine I have the following: [[image:Screenshot.jpg|left|thumb|150px|texttexttext]] the picture and the thumb is in the upper left corner from the picture area, but not centered in it. how can I adjust this? --Lastwebpage 19:53, 7 May 2009 (UTC)

## gallery perrow="6" is too wide

Just found some pages modified on en:Wikipedia with <gallery perrow="6">.

Can I just point out that this makes the gallery too wide to fit on a standard 1024x768 monitor display? Whereas the rest of the page will be width-adjusted to fit, the user will need to scroll sideways to see the other images. I think users will either find this irritating or just not bother to look at the off-screen images. If the gallery could be auto-adjusted by the browser, this would not be a problem.

I think this could be an increasing problem as the example gallery uses this parameter (both here and at the equivalent en:WP help page).

EdJogg 09:27, 2 July 2009 (UTC) (find me at en:Wikipedia if you want further input)

Why was the per row customization feature removed on Commons? 217.198.216.54 18:44, 26 November 2009 (UTC)

On a first-time upload the upload comment is copies as the new image description. But on a re-upload this doesn't seem to happen. Is this correct, and is it documented anywhere? I couldn't find any such documentation. 70.17.36.243 22:17, 9 August 2009 (UTC)

## What's happening to the thumbnail quality?

I have been a problem for several years, a large discrimination against Wikipedia in other languages than English. This problem I've seen at: Fast servers, amount of traffic used, number of mirrors per kilometer, and ultimately the quality of the thumbnails of the items. A model generated in a wikipedia article in Spanish will always be of better quality than one produced in English wikipedia, for example.

Can anyone explain this? Thanks --Wilfredor 05:49, 6 June 2010 (UTC)

To me they are no different; of course I see the difference in that picture, but on eswiki and enwiki I see no difference – and there should be no difference at all, since they both use the exact same file as thumbnail (given that they are the same pixel size). Maybe your browser is zoomed in a bit on the Spanish Wikipedia? Try pressing Ctrl+0. That would explain the blurriness. Jon Harald Søby 10:32, 6 June 2010 (UTC)

## Image borders don't seem to be working

The border option doesn't appear to do anything. Is there some weird syntax or something? --Pcj 17:36, 28 June 2010 (UTC)

## Alt argument non-functional

I've tried all kinds of variations with the Alt tag (in MediaWiki 1.6.7 & 1.16.0beta3), and I have not come across a situation where it would do anything...

In the old version, the tag is shown alongside the text (e.g. you will see "alt=some text"), in the new version, it doesn't show anything.

I also suspected that it might be an option to show an alternative image if the primary one isn't present, but that didn't prove to be true either.

i.e. this:

[[Image:Tst.png|alt=World]] |
[[Image:Tst.png|World]] |
[[Image:Tst.xxx|alt=Tst.png]] |
[[Image:Tst.xxx|alt=World]] |
[[Image:Tst.xxx|World]]


produces this: | | File:Tst.xxx | File:Tst.xxx | World

I will add a note in that regard to the Alt section on the main page. 69.196.133.249 18:05, 9 July 2010 (UTC)

## What is "upright"?

I have read the article, but I could not figure out what "upright" is and how to use it? Please could you define what upright is with an example? Bekiroflaz 13:24, 8 August 2010 (UTC)

## Gallery feature request - Defaulting to image description in Commons

It would be very cool and helpful if the Gallery tag could default (using some parameters/flags) to the image descriptions as defined in commons:Template:Information description field (optionally selecting English description automatically or allowing the user to chose the language). Without this feature, I find adding image descriptions/captions via pipes tedious and in some cases very redundant. --Codrinb 22:02, 23 January 2011 (UTC)

## Caption *under* a gallery

I'm trying to build a gallery of three images showing the workflow of Lotus Improv. I would like to have a single caption under the image that spans all across the gallery, describing the workflow that leads from one to the other. However, the caption= tag puts the text on top, which isn't what I want. Is there any way to do this? Maury Markowitz 12:36, 16 August 2011 (UTC)

## widths and heights

Looking at the examples on #Gallery, the widths="100px" and heights="100px" don't prevent the boxes from being 130px, and when trying to make the widths and heights 150px doesn't change a single pixel. (try editing the section and then modifying the values, and then previewing it. It doesn't affect the size at all). Does anyone know why this is?Joeytje50 18:31, 23 August 2011 (UTC)