ugly images (raster instead of vector)

50 views
Skip to first unread message

Edmund Laugasson

unread,
Apr 24, 2020, 5:15:34 PM4/24/20
to trees...@googlegroups.com
Hello,

Currently when adding built-in images via appropriate menu at right, these images look ugly (rasterized) as soon as I resize, e.g. using F12 (Scaled presentation view).

I noticed ./TS/images/ contaings lots of PNG-images across subfolders, which are raster graphics, more reading at https://en.wikipedia.org/wiki/Portable_Network_Graphics

Hereby I propose to use Scalable Vector Graphics - https://en.wikipedia.org/wiki/Scalable_Vector_Graphics instead of PNG. Then images will retain their quality when changing size smaller or larger.

It seems that same applies to added images as well - they get rasterized and look ugly when change the size of added image. Therefore I propose full SVG usage across whole TreeSheets!
----
Thank you,
Edmund Laugasson

Wouter van Oortmerssen

unread,
Apr 24, 2020, 6:12:35 PM4/24/20
to trees...@googlegroups.com
For this to happen, we'd need to
a) add an SVG renderer and caching system to Treesheets. Looks like there's this: http://wxsvg.sourceforge.net/ This is a fairly big library which requires additional dependencies (ffmpeg??)
b) find a good looking icon set in SVG that covers all our uses.

Alternatively, add higher resolution versions of those icons to reduce the problem for now.

--
You received this message because you are subscribed to the Google Groups "TreeSheets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to treesheets+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/treesheets/313588d0-5a07-cea6-f860-5e695567c842%40gmail.com.

Edmund Laugasson

unread,
Apr 25, 2020, 11:28:13 AM4/25/20
to trees...@googlegroups.com

a) add an SVG renderer and caching system to Treesheets. Looks like there's this: http://wxsvg.sourceforge.net/ This is a fairly big library which requires additional dependencies (ffmpeg??)

Could be an option. In AppImage it would be easier. Could be also optional, e.g. two different AppImage versions:
  • TreeSheetsSVG
  • TreeSheetsPNG

b) find a good looking icon set in SVG that covers all our uses.

As far as I know, Linux contains lots of different similar icons, here are system-wide folders:
  • /usr/share/icons/
  • /usr/share/pixmaps/

Depending on the Linux distribution and installed theme, the content of mentioned folders may vary but you can find interesting icons. Certainly they have kind of repository online. Not checked, whether there are also SVG ones but probably. Some references:

Wouter van Oortmerssen

unread,
Apr 25, 2020, 12:08:24 PM4/25/20
to trees...@googlegroups.com
TreeSheets runs on 3 platforms, not just Linux. And no, we're not going to fork in 2 versions just to show SVG images.

--
You received this message because you are subscribed to the Google Groups "TreeSheets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to treesheets+...@googlegroups.com.

Edmund Laugasson

unread,
Apr 25, 2020, 12:33:48 PM4/25/20
to trees...@googlegroups.com
Certainly these SVG-images are not Linux-specific. There can be chosen any set of icons, not just those like currently. Currently is quite limited choice of icons, to be honest. Probably add dialog for built-in image adding as the drop-down menu goes already quite a long and might not fit onto screen. Then there would be easier to add different categories with images. As these images are small and SVG-based then relatively small and wouldn't enlarge much the required space. Probably when replace current PNGs with SVGs will allow store more icons with similar storage space.

These folders (/usr/share/{icons,pixmaps}) in Linux are just places from where you can acquire those images. Certainly chosen images should be bundled with TS like currently. Linux is just one of the good sources, it can be run also in virtual machine, e.g. using VirtualBox, Hyper-V, etc to acquire those images if Linux is not your cup of tea. But probably can be these images found also online, proposed some links in previous message.

Also you don't need any two versions. Was just one idea, probably not the best one. As soon as SVGs are used, we probably don't need to keep PNG-based version of TS anymore.

25.04.20 19:08 Wouter van Oortmerssen:
Reply all
Reply to author
Forward
0 new messages