Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

File > Import should allow the user to place the image(s) in the viewport

Open Keavon opened this issue 9 months ago • 2 comments

File > Import should support multiple imports at once. If there's no document open, it should do what it does now by creating a document with the correctly sized artboard, one per imported file. Except we should probably make the be part of File > Open instead of Import, so Open works with .graphite files as well as regular images.

But if a document is open, that's what Import is for. We want that to not place the import in the center of the viewport's current view, but instead attach it to the user's cursor and show a thumbnail preview of the image. Clicking places it center at the chosen location. Dragging draws a box with the image's aspect ratio which dictates where it will be placed. Once that's complete, it moves on to the next one if multiple images were imported.

Keavon avatar Apr 29 '25 00:04 Keavon

Current Status:

  • File > Import only supports opening single file (Image files)
  • File > Open only support opening single .graphite file

Suggested goal

  • if there is no active document, File > Import should be able to open multiple files and create a document for each of those (I would implement this as File > Open )
  • if there is active document File > Import should attach a preview of the imported image at the cursor. The user could decide the location of imported files by clicking, drag and draw. This continues till every imported file has been located.

Discussion of the Suggested Goal

When there is no active document, file import will create a document for each file imported. This sounds more like a "Open" Instead of Import. At this case, I would suggest implementing this one as a feature of File > Open. And having File > Import focus on adding images to existing documents. @Keavon What is you thought about it.

If there is no one else working on this have I look and try to create a PR for this feature

Daniel53245 avatar May 06 '25 06:05 Daniel53245

From what I can tell, you've basically restated what the original issue description says? Let me know if I'm missing anything that's a question you're in need of an answer of, rather than your restatement of the specification. This hasn't been attempted yet so you are welcome to begin it.

Keavon avatar May 06 '25 06:05 Keavon