aboutsummaryrefslogtreecommitdiff
path: root/mediawiki.lrdevplugin/Info.lua
diff options
context:
space:
mode:
authorHasenlauefer <eckhard.henkel@t-online.de>2016-02-11 12:22:36 +0100
committerRobin Krahl <me@robin-krahl.de>2016-02-11 12:22:36 +0100
commitc722a7d91ac70325277998e2a07d4041705ffc6d (patch)
treeeb45244ecad19e4f2f6f5e122a069b409716bf69 /mediawiki.lrdevplugin/Info.lua
parent0ec6089e5aa521ffd78c8f73426918d8e610b293 (diff)
downloadLrMediaWiki-c722a7d91ac70325277998e2a07d4041705ffc6d.tar.gz
LrMediaWiki-c722a7d91ac70325277998e2a07d4041705ffc6d.tar.bz2
Extract GPS heading from EXIF for {{Location}}
This enhancement is available for users of a Lightroom (LR) version 6 or higher. The function to retrieve the direction has been introduced by Adobe with version 6. Therefore this enhancement is not available by users of versions lower 6. This enhancement differs several LR versions. Depending on the version, different information messages are shown (or not): * LR 6 or higher: If the `Direction` field is set, the user gets informed about this feature. Uploads of files without a direction setting don’t cause this information message, because at such cases the user is not affected. * LR 5: Users get informed, the feature is not available, due to the insufficient LR version. Adobe introduced the “Direction” field with LR version 5, but forgot to include it at the corresponding LR SDK 5. Therefore this feature can not be used by users of LR 5. At release notes of LR SDK 6 this has been mentioned to be a bug fix of LR SDK 5. * LR 4: Users of this version are not affected, because Adobe introduced the “Direction” field with version 5. Therefore users of LR 4 don’t get any information message. * LR versions lower 4: These versions are not supported by LrMediaWiki. The information messages include a “Don’t show again” (German: „Nicht erneut anzeigen“) checkbox. If the user decides, to set this option and decides to revert this decision later, a reset of warning dialogs at LR is needed: * English: Edit -> Preferences... -> General -> Prompts -> Reset all * warning dialogs * German: Bearbeiten -> Voreinstellungen -> Allgemein -> * Eingabeaufforderungen -> Alle Warndialogfelder zurücksetzen LR can store a direction value with up to 4 digits beyond a decimal point, but shows at user interface a rounded value without decimal places (by mouse over the direction field). The information message shows the same rounded value, to avoid confusion of the user seeing different values. The `{{Location}}` template parameter `heading` is filled by the stored value of LR. Sample: A direction input of 359.987654321 is stored as 359.9876, shown as 360°. At `{{Location}}` template the LR stored value of 359.9876 is set. Affected code: - MediaWikiExportServiceProvider.processRenderedPhotos: use the heading value to generate the Location template - Info: change SDK version to 6.0 Fix #35.
Diffstat (limited to 'mediawiki.lrdevplugin/Info.lua')
-rw-r--r--[-rwxr-xr-x]mediawiki.lrdevplugin/Info.lua77
1 files changed, 39 insertions, 38 deletions
diff --git a/mediawiki.lrdevplugin/Info.lua b/mediawiki.lrdevplugin/Info.lua
index a3aa55b..7a1e0b2 100755..100644
--- a/mediawiki.lrdevplugin/Info.lua
+++ b/mediawiki.lrdevplugin/Info.lua
@@ -1,38 +1,39 @@
--- This file is part of the LrMediaWiki project and distributed under the terms
--- of the MIT license (see LICENSE.txt file in the project root directory or
--- [0]). See [1] for more information about LrMediaWiki.
---
--- Copyright (C) 2014 by the LrMediaWiki team (see CREDITS.txt file in the
--- project root directory or [2])
---
--- [0] <https://raw.githubusercontent.com/LrMediaWiki/LrMediaWiki/master/LICENSE.txt>
--- [1] <https://commons.wikimedia.org/wiki/Commons:LrMediaWiki>
--- [2] <https://raw.githubusercontent.com/LrMediaWiki/LrMediaWiki/master/CREDITS.txt>
-
-return {
- LrSdkVersion = 5.0,
- LrToolkitIdentifier = 'org.ireas.lightroom.mediawiki',
- LrPluginName = LOC '$$$/LrMediaWiki/PluginName=MediaWiki for Lightroom',
-
- LrInitPlugin = 'MediaWikiInit.lua',
-
- LrLibraryMenuItems = {
- title = LOC '$$$/LrMediaWiki/Menu/Mapping=Keyword/category mapping',
- file = 'MediaWikiMappingMenuItem.lua',
- },
-
- LrExportServiceProvider = {
- title = LOC '$$$/LrMediaWiki/MediaWiki=MediaWiki',
- file = 'MediaWikiExportServiceProvider.lua',
- },
-
- LrMetadataProvider = 'MediaWikiMetadataProvider.lua',
-
- LrPluginInfoProvider = 'MediaWikiPluginInfoProvider.lua',
-
- VERSION = {
- major = 0,
- minor = 4,
- revision = 1,
- },
-}
+-- This file is part of the LrMediaWiki project and distributed under the terms
+-- of the MIT license (see LICENSE.txt file in the project root directory or
+-- [0]). See [1] for more information about LrMediaWiki.
+--
+-- Copyright (C) 2014 by the LrMediaWiki team (see CREDITS.txt file in the
+-- project root directory or [2])
+--
+-- [0] <https://raw.githubusercontent.com/LrMediaWiki/LrMediaWiki/master/LICENSE.txt>
+-- [1] <https://commons.wikimedia.org/wiki/Commons:LrMediaWiki>
+-- [2] <https://raw.githubusercontent.com/LrMediaWiki/LrMediaWiki/master/CREDITS.txt>
+
+return {
+ LrSdkVersion = 6.0,
+ LrSdkMinimumVersion = 4.0,
+ LrToolkitIdentifier = 'org.ireas.lightroom.mediawiki',
+ LrPluginName = LOC '$$$/LrMediaWiki/PluginName=MediaWiki for Lightroom',
+
+ LrInitPlugin = 'MediaWikiInit.lua',
+
+ LrLibraryMenuItems = {
+ title = LOC '$$$/LrMediaWiki/Menu/Mapping=Keyword/category mapping',
+ file = 'MediaWikiMappingMenuItem.lua',
+ },
+
+ LrExportServiceProvider = {
+ title = LOC '$$$/LrMediaWiki/MediaWiki=MediaWiki',
+ file = 'MediaWikiExportServiceProvider.lua',
+ },
+
+ LrMetadataProvider = 'MediaWikiMetadataProvider.lua',
+
+ LrPluginInfoProvider = 'MediaWikiPluginInfoProvider.lua',
+
+ VERSION = {
+ major = 0,
+ minor = 4,
+ revision = 2,
+ },
+} \ No newline at end of file