Skip to content
","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

Solved, thanks for the comment, the .a9s-annotationlayer seems to be a svg strings but not actually a canvas, so there is no straight forward way to combine them. so basically it need to extract the annotation in the view and convert the annotation coordinate from image to windows px coordinate then draw on a hidden canvas, after than could use the drawImage to overlay this to the original image.

","upvoteCount":1,"url":"https://github.com/orgs/annotorious/discussions/524#discussioncomment-12495152"}}}
Discussion options

You must be logged in to vote

Solved, thanks for the comment, the .a9s-annotationlayer seems to be a svg strings but not actually a canvas, so there is no straight forward way to combine them. so basically it need to extract the annotation in the view and convert the annotation coordinate from image to windows px coordinate then draw on a hidden canvas, after than could use the drawImage to overlay this to the original image.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rsimon
Comment options

Answer selected by linuxbioinfoguy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants