MCPcopy Index your code
hub / github.com/blueimp/JavaScript-Load-Image / displayMetaData

Function displayMetaData

js/demo/demo.js:91–108  ·  view source on GitHub ↗

* Displays metadata * * @param {object} [data] Metadata object

(data)

Source from the content-addressed store, hash-verified

89 * @param {object} [data] Metadata object
90 */
91 function displayMetaData(data) {
92 if (!data) return
93 metaNode.data(data)
94 var exif = data.exif
95 var iptc = data.iptc
96 if (exif) {
97 var thumbnail = exif.get('Thumbnail')
98 if (thumbnail) {
99 displayThumbnailImage(thumbNode, thumbnail.get('Blob'), {
100 orientation: exif.get('Orientation')
101 })
102 }
103 displayTagData(metaNode, exif.getAll(), 'TIFF')
104 }
105 if (iptc) {
106 displayTagData(metaNode, iptc.getAll(), 'IPTC')
107 }
108 }
109
110 /**
111 * Removes meta data from the page

Callers 1

updateResultsFunction · 0.85

Calls 2

displayThumbnailImageFunction · 0.85
displayTagDataFunction · 0.85

Tested by

no test coverage detected