treesheets icon indicating copy to clipboard operation
treesheets copied to clipboard

[feature request] svg, vector or bitmap ?

Open mhow2 opened this issue 4 years ago • 6 comments

Hi, this tool is really awesome. Thanks ! What about to support export as SVG or bitmap ? So we can zoom-in during a remote presentation for instance. Cheers

mhow2 avatar May 19 '20 10:05 mhow2

There already is bitmap export. If you want scalable export you could try one of the various html export formats?

You can also do presentations right from TreeSheets, there is a presentation mode that makes the current view as big as possible.

aardappel avatar May 19 '20 15:05 aardappel

There already is bitmap export.

Thank you for the answer. On my side I don't see that export option in the menu ("image" is only for PNG) : image

Presentation from TreeSheets works fine indeed. however, the HTML export doesn't have the same style. In the PNG export you cannot set the resolution (it's fixed). What would you choose to embbed in a webpage that would scale properly without loosing too much quality ?

mhow2 avatar May 19 '20 16:05 mhow2

I tested with the latest AppImage as well and didn't find any option to export as bitmap EDIT- I could use the "print to file" method but the output is blank (as well as the preview by the way).

mhow2 avatar May 20 '20 07:05 mhow2

"bitmap" is another name for an image, and a PNG stores bitmaps.. if instead you are referring specifically to the BMP format, no that is not specifically supported, but every image viewer (e.g. XNView, Gimp) can convert PNG to BMP).

aardappel avatar May 21 '20 15:05 aardappel

Would prefer SVG as it is XML-based and much more capabilities to change. Especially in the light of new Inkscape 1.0 and based on SVG-format, also great presentation tool Sozi. As there is already XML available in TreeSheets - perhaps it would be possible to use it already as a starting point to support XML in an image way - as SVG.

edmundlaugasson avatar May 21 '20 16:05 edmundlaugasson

In case anyone finds this looking for SVG support: my current workaround (based on this SO thread):

  1. File -> Export view as -> HTML (Tables+Styling) ...
  2. Use wkhtmltoimage to convert the HTML to SVG.

The only downside is that the whole output depends on the exported HTML (e.g., layout styles will only render in grid mode). It would be nice to have SVG export to have 1-to-1 fidelity, but it's spec is huge, and it would take an inordinate amount of time to implement it. (To me, at least.)

edit: Related issues:

  • https://github.com/aardappel/treesheets/issues/155
    • https://github.com/aardappel/treesheets/issues/84
    • https://github.com/aardappel/treesheets/issues/100

toraritte avatar Sep 20 '22 03:09 toraritte