diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index 84371660aba5e694e40c52b988b0d05b69e01e96..948dc8909f09cd42c5aae327bc8c17cc62be7f2a 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -37,13 +37,11 @@ export default class WebAnnotation { bodies.push(textBody); } + // TODO WebAnnot format if (this.image) { - const imgBody = { - // TODO format detection - format: 'image/jpg', - id: this.image.url, - type: 'Image', - }; + const imgBody = { type: 'Image' }; + Object.assign(imgBody, this.image); + imgBody.id = imgBody.url; bodies.push(imgBody); }