| Store | Cart

[TCLCORE] tip for svg support in tk

From: Zaumseil René <RZau...@kkg.ch>
Wed, 2 May 2018 07:47:31 +0000
Hello,

If there are no strong objections I would like to add the following tip.

======
TIP: Include simple svg support with nanosvg

Abstract

Tk needs scalable images on high res mobile devices.

Rationale

Tk is running on desktop and mobile devices. The out of the box image formats
do not scale and are to tiny on high res mobile devices.
The same goes for the image formats provided by the img extension.

There is already an tk image extension at https://github.com/auriocus/tksvg
The implementation is using nanosvg. It has no other external dependencies
and is only 2 header files.

Specification

The already existing tksvg extension will be included in Tk.
A new image format will be created. The name needs to be specified.

Discussion

- nanosvg is no full svg library
- the name of the image format should mention this (p.e. "nanosvg" or "svgnano")
- are there better libraries with our requirements (C only, license)?

Implementation

For testing purposesjust compile the tksvg extension and run it with:

package req tksvg
image create photo -format svg yourfile.svg

Copyright

This document has been placed in the public domain.

======

Thank you
René

Kernkraftwerk Goesgen-Daeniken AG
CH-4658 Daeniken, Switzerland

Diese Nachricht (inkl. Anhaenge) beinhaltet moeglicherweise vertrauliche oder gesetzlich geschuetzte Daten oder Informationen. Zum Empfang derselben ist (sind) ausschliesslich die genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht irrtuemlicherweise erreicht hat, sind Sie hoeflich gebeten, diese unter Ausschluss jeder Reproduktion zu vernichten und den Absender umgehend zu benachrichtigen. Besten Dank.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core

Recent Messages in this Thread
Zaumseil René May 02, 2018 07:47 am
Harald Oehlmann May 02, 2018 08:51 am
Messages in this thread