Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG related #2

Open
MasterInQuestion opened this issue Jan 19, 2024 · 0 comments
Open

SVG related #2

MasterInQuestion opened this issue Jan 19, 2024 · 0 comments

Comments

@MasterInQuestion
Copy link
Owner

MasterInQuestion commented Jan 19, 2024

    The "Counting.png" (pre-rendered "Counting.htm") is so notoriously large (~ 1.33 MiB):
    [ Did some palette optimization (merge similar colors and limit color space): <&>now ~ 647.17 KiB</&>. [1] ]
    Why not consider have it converted to SVG?

    Did considered, but to no avail.
    In brief, current SVG definition has broken support for text type contents:
    Primarily, it's missing support for content of non-fixed (undetermined) size (i.e. no wrapping and overflow handling): which is typically the case for texts.
    .
    It also lacks support for many CSS properties: which makes table rendering a bit bothersome.

    Of course, vectorizing the PNG is also an option.
    I'm just not interested to bother.


=== Further reading ===

    SVG doesn't seem to be well-designed to be used in Plain Text:
    Cannot be properly parsed without uttering that verbose (and much meaningless) `xmlns="http://www.w3.org/2000/svg"`...

    And the very dumbfounding "d" graphic path definition...

    See also:
    https://github.com/MasterInQuestion/talk/discussions/15#discussion-6022492 ("SVG")

[ [1]
    Did further optimization using WebP: finally ~ 278.18 KiB.
    More details: https://github.com/MasterInQuestion/attach/commit/401c58fc3a56d265feadda567f02d79de93ff10c#Counting ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant