Changeset 32397
- Timestamp:
- Jan 17, 2021, 10:00:06 PM (3 years ago)
- Location:
- extensions/read_metadata
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/read_metadata/admin.php
r32108 r32397 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | Read Metadata 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2016-20 17ddtddt http://temmii.com/piwigo/ |3 // | Read Metadata plugin for piwigo by TEMMII | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2016-2021 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 176 176 'RM_EXIFWORDING' => 'EXIF Fields in ', 177 177 )); 178 179 # 180 # Read and parse XMP metadata 181 # (ImageMagick PHP extension required) 182 # 183 184 // Check ImageMagick is installed 185 if ( extension_loaded( 'imagick' ) && 186 class_exists( 'imagick' )) { 187 188 //create new Imagick object from image & get the XMP data 189 $RM_IM = new imagick($filename) ; 190 $RM_XMP = $RM_IM -> getImageProperties( "xmp:*" ) ; 191 192 // Setup readout 193 $headerTxt = 'XMP Properties:' ; 194 $template -> assign('XMPdata', $RM_XMP) ; 195 } 196 else { 197 $headerTxt = l10n('Unable to read XMP data. ImageMagick not loaded.') ; 198 } 199 200 $template -> assign('XMPheader', $headerTxt ) ; 201 178 202 179 203 -
extensions/read_metadata/admin.tpl
r31747 r32397 32 32 <br>{$rm.RM_KEY} = {$rm.RM_VALUE} 33 33 {/foreach} 34 < p>34 </p> 35 35 <p style="text-align:left;"> 36 36 <span style="font-size:1.2em;font-weight: bold;">{$readmetadata3.RM_EXIFWORDING} {$readmetadata.RM_FILE}</span><br> … … 42 42 {$rm.RM_KEY} = {$rm.RM_VALUE}<br> 43 43 {/foreach} 44 <p> 44 </p> 45 <p style="text-align:left;"> {* XMP SECTION *} 46 <span style="font-size:1.2em;font-weight: bold;">{$XMPheader}</span><br> 47 {if isset ($XMPdata)} 48 {foreach from=$XMPdata item=XMPprop key=XMPname} 49 <pre>{$XMPname} {$XMPprop}</pre> 50 {/foreach} 51 {/if} 52 <br> 45 53 </fieldset> 46 54 -
extensions/read_metadata/initadmin.php
r31747 r32397 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | Read Metadata 3 // | Read Metadata plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2016-20 17ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2016-2021 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/read_metadata/language/en_UK/plugin.lang.php
r31747 r32397 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | Read Metadata 3 // | Read Metadata plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2016-20 17ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2016-2021 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 31 31 $lang['Photo admin page'] = 'Photo admin page'; 32 32 $lang['or'] = 'or'; 33 $lang['Unable to read XMP data. ImageMagick not loaded.'] = 'Unable to read XMP data. ImageMagick not loaded.'; -
extensions/read_metadata/language/fr_FR/plugin.lang.php
r31787 r32397 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | Read Metadata 3 // | Read Metadata plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2016-20 17ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2016-2021 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 31 31 $lang['Photo admin page'] = 'Page d\'administration de la photo'; 32 32 $lang['or'] = 'ou'; 33 $lang['Unable to read XMP data. ImageMagick not loaded.'] = 'Impossible de lire les données XMP. ImageMagick n\'est pas activé.'; -
extensions/read_metadata/main.inc.php
r32273 r32397 10 10 11 11 // +-----------------------------------------------------------------------+ 12 // | Read Metadata 12 // | Read Metadata plugin for piwigo by TEMMII | 13 13 // +-----------------------------------------------------------------------+ 14 // | Copyright(C) 2016-20 17ddtddt http://temmii.com/piwigo/ |14 // | Copyright(C) 2016-2021 ddtddt http://temmii.com/piwigo/ | 15 15 // +-----------------------------------------------------------------------+ 16 16 // | This program is free software; you can redistribute it and/or modify | … … 43 43 } 44 44 45 // Plugin for admin45 // Plugin for admin 46 46 if (script_basename() == 'admin') 47 47 {
Note: See TracChangeset
for help on using the changeset viewer.