Inkscape.org
Beginners' Questions Redundancy tell ?
  1. #1
    temporford temporford @temporford

    Is it possible to manipulate the XML data of a vector graphic for levels of redundancy, similar to different icon sizes for a rasterised image;ย which be completely different artwork e.g. 16x16 for a favicon is different to the main 128x128 icon.

  2. #2
    inklinea inklinea @inklineaโ›ฐ๏ธ

    This page describes making an svg favicon with light and dark theme browser switching.

    The svg style css code might have other options too not sure.

    https://css-tricks.com/svg-favicons-in-action/

  3. #3
    temporford temporford @temporford

    That's such a useful feature, I didn't know that !

    It appears that @media queries can also rely on Javascript w/ @scripting !

    ย 

    Really useful, and an interesting feature of SVG enabling light/dark mode for favicon, makes perfect sense !

  4. #4
    Xav Xav @Xav๐Ÿ‘น

    If I understand what you're trying to achieve, there are also a couple of non-JS techniques that may be worth looking at. You can used named views to switch between different sub-images in an SVG via the target part of the URL (the bit after the has character), or use the CSS :target selector to achieve a similar result by showing/hiding layers based on the target in the URL. I covered these techniques in parts 79 and 80 of my tutorial series, respectively: https://www.peppertop.com/blog/?p=1563

    ย 

  5. #5
    temporford temporford @temporford
    *

    Of course, I just noticed the scripting optionย and felt that would achieve 90% of what I was looking for, but the dedicated options will likely deal with that too.

    I wonder what a Terminal interface could be made to do i.e. if browsing online in just text, the imagery could be represented as ASCII art I assume ?