[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG |
Date: |
Thu, 15 Jun 2023 20:51:56 +0000 |
gerard.vermeulen@posteo.net writes:
> On 07.06.2023 19:57, Ihor Radchenko wrote:
> [...]
> I understand why you prefer the <img> tag over the <object> tag.
>
>> Finally, I can see that there are ways to use CSS on img+svg:
>> https://blog.union.io/code/2017/08/10/img-svg-fill/
>
> I failed to make the flower example work with the information on this
> site.
I am not expert in html. Maybe someone else (Timothy?) can chime in.
That said, I do not see why we cannot offer <object> strategy as an
option regardless whether is can solve the problem with CSS.
> ;; For each SVG image during HTML export:
> ;; 1. It checks `svg-as-object' and "image in-lining" whether to
> ;; embed the SVG image in an <object> tag.
> ;; 2. If not, it checks `svg-inclusion' and "image in-lining"
> ;; whether to copy the SVG contents to the HTML output.
> ;; 3. If not, it falls back to checking "image in-lining" whether to
> ;; embed the SVG image in an <img> tag (as any other image type).
> ;; 4. It is possible to set `svg-as-object' and/or `svg-inclusion':
> ;; - For each SVG link by means of "#+ATTR_HTML: :svg-as-object t"
> ;; or "#+ATTR_HTML: :svg-inclusion t".
> ;; - Within file scope by means of "#+OPTIONS: svg-as-object:t" or
> ;; "#+OPTIONS: svg-inclusion:t".
> ;; - Within toplevel scope by means of the options
> ;; `org-html-svg-as-object' or `org-html-svg-inclusion'.
I think you missed `org-html-inline-image-rules' where users can
include/exclude svg images from inlining.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, (continued)
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Ihor Radchenko, 2023/06/07
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Christian Moe, 2023/06/07
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Ihor Radchenko, 2023/06/07
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, gerard . vermeulen, 2023/06/15
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Max Nikulin, 2023/06/15
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Ihor Radchenko, 2023/06/15
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG,
Ihor Radchenko <=
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, gerard . vermeulen, 2023/06/16
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Ihor Radchenko, 2023/06/17
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, gerard . vermeulen, 2023/06/17
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Max Nikulin, 2023/06/21
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Ihor Radchenko, 2023/06/21
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Max Nikulin, 2023/06/21
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Ihor Radchenko, 2023/06/21
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Max Nikulin, 2023/06/22
- Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, Ihor Radchenko, 2023/06/23
Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG, gerard . vermeulen, 2023/06/06