Import graphics as objects into the document

Bug #209980 reported by Kovid Goyal
4
Affects Status Importance Assigned to Milestone
Quill
In Progress
Wishlist
Antonio Salazar

Bug Description

It would be nice to have the ability to import graphics files as objects that can be moved around, written upon, etc in the document. For ideas about a UI for this, you may want to look at http://research.microsoft.com/inkseine/

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

Interesting. This is largely the idea I had in terms of interaction via the stylus, though I was not yet sure whether to go the way of radial menus or not. That will likely be the way to go. Importing graphics via drag 'n drop is somewhat more work, so initially I think it will be a simpler and, admittedly, more annoying process, but we should be able to improve that over time.

Changed in quill:
assignee: nobody → shadowfiend
importance: Undecided → Wishlist
Revision history for this message
Kovid Goyal (kovid) wrote :

I've found drag and drop (especially just drop) to be really easy to implement in Qt. If you like I can point you to some code that does this from one of my projects, though it is in python and for e-books, it should be easy to adapt. See for example lines 408-450 here http://libprs500.kovidgoyal.net/browser/trunk/src/libprs500/gui2/library.py

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

It isn't very complicated, just somewhat so considering some of my other goals for a release -- like undo/redo and on-canvas interaction. I basically want to have a lightning-quick implementation of this, as with the SVG export, that can later be refined.

Changed in quill:
milestone: none → undo-redo
Revision history for this message
Antonio Salazar (shadowfiend) wrote :

FYI -- I am currently adding this in the add_non_tablet_items branch of Quill. Images and text can currently be dragged and dropped into Quill without any trouble, and text can be saved. I am right this second working on saving images (initially just to a sub-folder, with potentially a different solution to follow using a compressed archive to deal with everything or something of the sort).

Then I need to add undo/redo for the drops. Meantime, the radial menus are coming along nicely in the main branch (though I am locally developing in parallel in an add_radial_menus branch that I may publish).

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

Sounds good. You may want to consider adding some form of enclosures to the quill files as from an end user perspective having a bunch of files for a single document is rather inconvenient. Another alternative is to use a simple zip based enclosure for the strokes file as well as any text and images, rather like the epub standard.

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

Yes, the idea was to create a ZIP file. For the time being, however, I'm going to go the simpler route and create an images directory prefixed by the filename. I need to look into the ZIP-based (or even simply tar-based) handling a little more and figure out where to put what before implementing that.

Changed in quill:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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