Lorien icon indicating copy to clipboard operation
Lorien copied to clipboard

Export functionality (svg, png, etc.)

Open SkyeNygaard opened this issue 4 years ago • 4 comments

Right now the export functionality essentially acts like a screenshot, only exporting what is visible on the window. I believe most users would prefer the default functionality to be to export the whole canvas, with the corners set to make sure nothing is cut off. They can then use a screenshot tool to take a picture of the visible space on the canvas if they want.

SkyeNygaard avatar Dec 03 '21 19:12 SkyeNygaard

Yeah, the export is currently very barebones and really just a screenshot. Ideally we would have 2 export modes:

  1. Export the whole canvas as a svg which can be scaled indefinitly just like Lorien files and opened by almost all graphics programs. This would require digging into the format and write an exporter to convert from the internal Lorien format to svg. Seems doable and like a pretty neat feature.
  2. Export parts of the visible screen by draging over the area and exporting it as png (think of it like the crop tool in Krita/Photoshop etc. but for exporting). From a UX/UI perspective this is a lot of work and not as useful as svg. I think Milton did it this way

mbrlabs avatar Dec 18 '21 16:12 mbrlabs

I implemented a basic svg exporter now (and removed the png exporter). Right now it exports the brush strokes with a uniform thickness and ignores pressure data / stroke width. Have to figure out how to do that, since svg does not support something like that out of the box.

If you want to check it out, you can download the latest build here (scroll down to articfacts)

mbrlabs avatar May 18 '22 11:05 mbrlabs

Not to hijack, but I wanted to make a new issue for this and I think it makes more sense to put here.

Just found this project and like what I'm seeing. Currently I'm OpenBoard and I'd really like to switch but the one big missing feature I'd love to see in Lorien is PDF exports. OpenBoard lets you make new pages in the same document and export each page as a page in a PDF. I don't know if multi-page documents are part of your vision for Lorien, but if they are, I think exporting multiple SVGs as pages in a PDF would be a reasonable next step, and a major upgrade for Lorien as a note-taking app. Thoughts?

CodingPenguin1 avatar Oct 27 '22 21:10 CodingPenguin1

For anyone else facing this challenge, you can convert using the imagemagick convert program. It does require the CLI, but it works really well. Perhaps the application could wrap these commands if it detects imagemagick is installed.

tmathews avatar Apr 24 '23 22:04 tmathews