Home

Awesome

LrMediaWiki Build Status

LrMediaWiki is a plugin for Adobe Photoshop Lightroom that allows users to upload images to Wikimedia Commons or any other MediaWiki installation directly from Lightroom.

Usage information

Usage information can be found on the page Commons:LrMediaWiki on Wikimedia Commons.

Developer information

LrMediaWiki is developed in Lua using the Lightroom SDK. It is released under the MIT/X11 license. LrMediaWiki works with Lightroom from version 4 up to latest "Classic" 10 installations – both on Windows and on macOS.

Code structure

The plugin code is located in the mediawiki.lrdevplugin directory. Info.lua defines the plugin metadata to be read by Lightroom. MediaWikiExportServiceProvider.lua defines the user interfaces and passes all necessary information to MediaWikiInterface.lua. This file evaluates the user input and prepares the file description and the file itself for the MediaWiki upload. The upload is done in MediaWikiApi.lua. MediaWikiUtils.lua provides common utility functions, and MediaWikiMetadataProvider.lua defines the custom metadata containing e. g. the file description and additional categories and templates.

Libraries

LrMediaWiki contains a copy of JSON.lua written by Jeffrey Friedl and released under CC-by 3.0.

APIs

Beside Lightroom SDK, LrMediaWiki uses these APIs: