Skip to content
Snippets Groups Projects
Verified Commit 7cb70ef8 authored by Loïs Poujade's avatar Loïs Poujade
Browse files

WIP standard

parent a800791a
Branches
Tags
No related merge requests found
...@@ -37,13 +37,11 @@ export default class WebAnnotation { ...@@ -37,13 +37,11 @@ export default class WebAnnotation {
bodies.push(textBody); bodies.push(textBody);
} }
// TODO WebAnnot format
if (this.image) { if (this.image) {
const imgBody = { const imgBody = { type: 'Image' };
// TODO format detection Object.assign(imgBody, this.image);
format: 'image/jpg', imgBody.id = imgBody.url;
id: this.image.url,
type: 'Image',
};
bodies.push(imgBody); bodies.push(imgBody);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment