Extension:CloudImage

The  extension provides a way to embed images directly from image hosting services e.g. Flickr, OneDrive, Dropbox, SlideShare, Speaker Deck, imgur and others.

embed simply
Just embed a image simply. But not forgot to close the tag by &quot;/&gt;&quot;. For example:

Note: border="0" set automatically if not set.

embed with caption
You can specify some attributes similarly tag.

You can use "href" to attach a hyper link on the image.

And you can write a comment below the image.

For example:

Special attributes using here.
 * framestyle - styles for
 * captionstyle - styles for

embed from Dropbox
You can embed Dropbox link of images directly. For example:

embed from Flickr
You can embed images hosted on Flickr directly. For example: ↓ embed an image from Flickr directly ↓

Compatibility with Extension:FlickrAPI
This extension provides a tag that has semi-compatibility with Extension:FlickrAPI for migration.

If you want to use this function, set the $wgCloudImageCompatibleFlickrAPI value above wfLoadExtension.

And set your Flickr API Key to $wgFlickrAPIKey. You can use same key as Extension:FlickrAPI.

Note: This extension use Flickr API key with Extension:FlickrAPI ( tag) compatible mode only.

Object cache
This extension use MediaWiki Object cache mechanism for saving to call Flickr API (exclude oEmbed).

If you use Extension:FlickrAPI compatibility mode, we recommend to set $wgMainCacheType.

And if you want clear the cache, set the value on LocalSettings.php and reload the image.

Note: Purge not affect this extension.

Sites limitation
You can embed images from Flickr, OneDrive, Dropbox, Google Drive, SlideShare, Speaker Deck and imgur only by default.

And you can add other sites if you want. Note: This variable is changed in v1.1.4. Former format is no longer recommended.

Attributes limitation
You can use attributes 'width', 'height', 'class', 'style', 'title' and 'alt' only by default.

And you can add other attributes if you want.

e.g. add 'id'

Or you can overwrite this variable if you want to restrict some attributes.

e.g. restrict 'class' and 'style' Note: Attributes values must set lower-case letters.

Link target
This extension refer the $wgExternalLinkTarget value.

Lazy loading
This extension support to use lazy loading mechanism since v1.1.5.

You can set $wgNativeImageLazyLoading in LocalSettings.php if you want to use this function.

Note: This parameter supported since MediaWiki version 1.34.0.

Timeout
This extension timed out 60 seconds by default to call Flickr API.

We recommend to set shorten &quot;default_socket_timeout&quot; on php.ini as possible.

But Flickr oEmbed calling only, timed out 2 seconds by default.

And you can change it as follows.

Custom tag
You can use another tag e.g. as alias.

If you want to use this extension with, set the value above wfLoadExtension.

Notice
SlideShare (oEmbed), Speaker Deck (oEmbed) and imgur support are experimental.

This extension has some privacy risk. Use only at private site!

For details see here: Manual:$wgAllowExternalImages