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 · 1 comment
Open

SVG related #2

MasterInQuestion opened this issue Jan 19, 2024 · 1 comment

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 ]

@MasterInQuestion
Copy link
Owner Author

MasterInQuestion commented Oct 3, 2024

    JavaScript in SVG:
    https://old.reddit.com/r/uBlockOrigin/comments/1f84tc5/svg_image_seemingly_able_to_circumvent_javascript/?sort=old#lley39v
    https://www.bpb.de/system/files/datei/SOZ_04_02_detail_0.svg
    .
    Misuse & Quintessential Overengineering.

    Such "image"... What difference is it of between a fully-fledged web app?
    Image that requires an interaction engine to properly render?..
    Interactive-Image in HTML... Who invented it?

    [ Test Embedding ]

    Note:
    GitHub's CSP (Content Security Policy) disallowed the script's execution.
    See also: https://github.com/MasterInQuestion/attach/commit/80ff86187f5bbe807541b123993bdc77c9bd6cca

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