HTML Canvas export problem

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
YukonRob
Posts: 1
Joined: Sun Jul 29, 2018 12:34 pm

HTML Canvas export problem

Postby YukonRob » Sun Jul 29, 2018 12:42 pm

I have created a document in version .92.2 with both the display units and custom size units set to px (pixels). However when I save as HTML 5 Canvas it converts the units to mm and saves it with that coordinate system (shrinking my drawing). I could see this being by design if the canvas specs where in mm but my research leads me to believe that the specs are in px.
Anyone else seeing this?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: HTML Canvas export problem

Postby Moini » Mon Jul 30, 2018 6:37 am

You need to set the 'Scale' value to 1, and then resize your drawing (it will shrink to just a quarter of its size, so you need to select it, lock the aspect ratio, and divide either width or height by the value that was in the scale field before you entered '1' there. This should give you correct values.)

You may want to open a bug report on launchpad for this:

https://bugs.launchpad.net/inkscape
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: HTML Canvas export problem

Postby brynn » Mon Jul 30, 2018 7:23 am

I just made a simple test (I have Inkscape set for pixels). The size looks right, although I'm not sure how to know specifically what size the objects are, when viewing the.html


Return to “Discuss Software Issues”