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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment