Coordinates of nodes in .png export of a canvas


What I’m trying to do

I’d like to use the data stored in a .canvas file to extract the notes that said canvas contains from the .png output using Imagemagick -crop. The width and height seem fine, but the x and y values of the nodes are often negative and don’t correspond to the actual coordinates of the rectangles in the picture derived from the canvas.

In case you’re wondering what I’m trying to achieve, this enquiry is related to Anki’s Image Occlusion tool. Cropping isn’t actually the ultimate goal, what I really care about are the coordinates of each note / node.

Things I have tried

Fiddling with imagemagick hasn’t yielded any valuable result.

Thanks for your help!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.