Mercurial > hg > mgallery
comparison mgtool.php @ 286:878d2a772fd6
Add new $galExifConversions field, a boolean to distinguish unique and non-unique metadata fields.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 20 May 2019 15:11:08 +0300 |
parents | 403f2e1e5e79 |
children | 19fbf800b1f7 |
comparison
equal
deleted
inserted
replaced
285:25324e33fc78 | 286:878d2a772fd6 |
---|---|
32 // from the image file's EXIF information tag(s). | 32 // from the image file's EXIF information tag(s). |
33 // | 33 // |
34 define("GEC_TYPE" , 0); | 34 define("GEC_TYPE" , 0); |
35 define("GEC_NAME" , 1); | 35 define("GEC_NAME" , 1); |
36 define("GEC_FIELDS" , 2); | 36 define("GEC_FIELDS" , 2); |
37 define("GEC_IS_UNIQUE" , 3); | |
37 | 38 |
38 $galExifConversions = | 39 $galExifConversions = |
39 [ | 40 [ |
40 [ MG_STR, "caption" , "ImageDescription" ], | 41 [ MG_STR, "caption" , "ImageDescription" , TRUE ], |
41 [ MG_STR, "copyright" , "Copyright" ], | 42 [ MG_STR, "copyright" , "Copyright" , FALSE ], |
42 [ MG_STR, "model" , "Model" ], | 43 [ MG_STR, "model" , "Model" , FALSE ], |
43 [ MG_INT, "width" , ["COMPUTED", "Width"] ], | 44 [ MG_STR, "lensmodel" , "UndefinedTag:0xA434" , FALSE ], |
44 [ MG_INT, "height" , ["COMPUTED", "Height"] ], | 45 [ MG_INT, "width" , ["COMPUTED", "Width"] , TRUE ], |
45 [ MG_DVA, "fnumber" , "FNumber" ], | 46 [ MG_INT, "height" , ["COMPUTED", "Height"] , TRUE ], |
46 [ MG_DVA, "exposure" , "ExposureTime" ], | 47 [ MG_DVA, "fnumber" , "FNumber" , TRUE ], |
47 [ MG_INT, "iso" , "ISOSpeedRatings" ], | 48 [ MG_DVA, "exposure" , "ExposureTime" , TRUE ], |
48 [ MG_STR, "lensmodel" , "UndefinedTag:0xA434" ], | 49 [ MG_INT, "iso" , "ISOSpeedRatings" , TRUE ], |
49 [ MG_DVA, "focallength" , "FocalLength" ], | 50 [ MG_DVA, "focallength" , "FocalLength" , TRUE ], |
50 [ MG_DATE, "datetime" , "DateTimeOriginal" ], | 51 [ MG_DATE, "datetime" , "DateTimeOriginal" , TRUE ], |
51 [ MG_DATE, "datetime" , "DateTimeDigitized" ], | 52 [ MG_DATE, "datetime" , "DateTimeDigitized" , TRUE ], |
52 [ MG_INT, "filesize" , "FileSize" ], | 53 [ MG_INT, "filesize" , "FileSize" , TRUE ], |
53 [ MG_STR, "keywords" , "keywords" ], | 54 [ MG_STR, "keywords" , "keywords" , FALSE ], |
54 ]; | 55 ]; |
55 | 56 |
56 | 57 |
57 | 58 |
58 | 59 |