- A way to limit this to certain domains and even directories (and all subdirectories) of a particular domain
- Allow image alt/title tags for descriptions, borders, and full HTML/CSS customization
-Eep² 09:16, 25 July 2007 (UTC)
- As to the first question: $wgAllowExternalImagesFrom covers this.
- As to the second question: It should be easy to create an extension for this.
- -- Tbleher 10:32, 22 January 2008 (UTC)
- Enable external image to link to wiki pages, so in addition to [http_URL image_URL], please also implement [[wiki_keyword image_URL]]
Other URL types besides http:
We have allowed file:// urls to be linked from our wiki using $wgUrlProtocols, but this does not appear to apply to images. This would help us in our work to allow an image to be revised outside of the wiki on a file server and appear in a wiki article without repeated uploading. Bill Johnson 21:12, 6 December 2007 (UTC)
- So you want to put in an external image link but using a local file URL such as file:///h:\network-path\image.jpg ? Yeah you're right. I just tried that on my company wiki. MediaWiki doesn't pick up on the '.jpg' and spit out an IMG tag as you might expect.
- It's a bit of an ugly thing to do, and highly non-standard. Internet explorer does support it though <IMG SRC="file:///h:\network-path\image.jpg">. So you could make a simple mediawiki extension to output that HTML.
- -- Harry Wood 15:27, 7 December 2007 (UTC)
images from Google Docs
is not work if use images from google docs like http://docs.google.com/drawings/pub?id=14dkOMelgnXsjC-EC9vXIo6MLVZoabRzsRlNnKjwbe4M&w=960&h=720
- Add a '&.png' to the end of the url.
- -- Daniel Stonier, June 2013.
- The &.png trick doesn't work for me. The browser gives me a PNG to download when I load the page
- -- Paul Rafferty, April 2014
- Paul - For Google Drive documents I used something like &fake=.png at the end and it worked.
...images only from Flickr... doesn't seem to work, help please
I tried set this up so that just the wiki only excepts images from flickr.com http://18.104.22.168/ or http://farm3.static.flickr.com/ Doesn't seem to restrict just to the Flickr address --Willjermuk 22:42, 16 April 2008 (UTC)
Is it possible to set the image to a different size, as it is with uploaded images (syntax is, e.g., |200px). --Robinson Weijman 08:21, 5 January 2009 (UTC)
- It is a bit brute force, but if you have $wgRawHTML set to "true", you can use...
<html> <img style="max-width: XXXpx; max-height: YYYpx;" src="http://location-of-image.jpg"> </html>
- 22.214.171.124 21:51, 12 December 2010 (UTC)
- Thanks very much (whoever you are :) )! --Robinson Weijman 13:35, 3 January 2011 (UTC)
Based on my reading of Parser.php, this feature only works if the URL ends with a filename suffix indicating GIF, PNG, or JPEG. (Similar to how Internet Explorer "outsmarts" server-supplied MIME types.) So this won't work with, e.g. http://example.com/temperature_graph.cgi, whose HTTP header indicates an image MIME type. --Fleminra 21:39, 28 August 2009 (UTC)
How to maintain external images I embedded?
There is no way to maintain the embedded external images (list all / find dead ones). See https://bugzilla.wikimedia.org/show_bug.cgi?id=38468