SVG Export Functionality

Bug #209976 reported by Antonio Salazar
4
Affects Status Importance Assigned to Milestone
Quill
Fix Committed
Wishlist
Antonio Salazar

Bug Description

Hi,

I'd like to request that Quill use SVG to save notes. This will make .quill files accessible in other programs and for all time. It will also then be easy to import Xournal .xoj files into Quill.

Changed in quill:
importance: Undecided → Wishlist
Revision history for this message
Antonio Salazar (shadowfiend) wrote :

A question worth asking here is how pages get exported to SVG. Do we export the whole enchilada, so to speak, and export all PageItems? Do we render the whole canvas? Do we drop the pages and just render their children (the actual items) as if they were on a big canvas on their own?

Revision history for this message
Kovid Goyal (kovid) wrote :

For my use case a simple export to big canvas would be fine. But, generally it's a good idea to make the export as non-destructive as possible. I vaguely recall that SVG is extensible, in which case you could add markup to indicate the pages.

Changed in quill:
assignee: nobody → shadowfiend
status: New → In Progress
Revision history for this message
Antonio Salazar (shadowfiend) wrote :

I just pushed up to revision 15, which adds SVG export functionality and files the PDF export and the SVG export both under a File->Export... menu. See how that plays. At an initial glance, it seems like the produced SVG is a bit too complex (too many paths) as I anticipated, but other than that it seems to be good. I'm not sure how the too many paths problem might be fixed.

Revision history for this message
Kovid Goyal (kovid) wrote :

Perhaps an averaging of paths, kind of what would be needed for path smoothing?

Revision history for this message
Antonio Salazar (shadowfiend) wrote :

But see, that's where we run into issues. Averaging paths to smooth them is fine, but then we have the problem of paths having different pressures and therefore widths. If you merge two paths into one, you lose that width information. For now, I will mark this wishlist item closed. If you want to file something on the optimization right now, go for it, but I probably won't get to it for a while. I don't have much time as it is, and there are a few things I want to get nailed down before I get around to improving this beyond the basics :) Alternatively, such an optimization might be complicated enough to merit a blueprint unto itself.

Revision history for this message
Antonio Salazar (shadowfiend) wrote :
Changed in quill:
milestone: none → onedotoh
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.