preparing for exif refactoring...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-01-10 04:59:50 +03:00
parent a322623934
commit 65e3ae1cb9

View File

@ -25,6 +25,10 @@ var core = require('features/core')
/*********************************************************************/ /*********************************************************************/
// XXX split this into two:
// - getter from .images[gid].metadata (no external dependencies)
// - fileExifExtractor / webExifExtractor / ... to implement
// extracting of exif if .metadata does not exist...
// XXX add exif writer... // XXX add exif writer...
var EXIFActions = actions.Actions({ var EXIFActions = actions.Actions({
// XXX cache the result and see if it is cached before running exiftool... // XXX cache the result and see if it is cached before running exiftool...
@ -121,7 +125,22 @@ var EXIFUIActions = actions.Actions({
&& this.images[image].metadata && this.images[image].metadata
|| this.getExif(image, force) || this.getExif(image, force)
// XXX // XXX make a list with two .text elements per list item:
// .text.field - exif field name
// .text.value - exif field value
// Add CSS:
// .exif-browser .list>div .text {
// display: inline-block;
// width: 50%;
// }
// .exif-browser .list>div .text:first-child {
// text-align: right;
// }
// .exif-browser .list>div .text:first-child:after {
// content: ": ";
// }
// .exif-browser .list>div .text:last-child {
// }
}] }]
}) })