[docutils:feature-requests] #113 scale option in docutils.conf
Günter Milde via Docutils-develop <[email protected]> Wed, 23 Apr 2025 09:19:00 -0000
| Newsgroups | gmane.text.docutils.devel |
|---|---|
| Message-ID | </p/docutils/feature-requests/113/4b1b44c7135d449dddb762645ca3b1566fa966c8.feature-requests@docutils.p.sourceforge.net> |
Mind, that setting "scale" on an image/figure without explicitely set "height" and "width" starts an attempt to get the image size from the image file on the local file system. In addition to slowing down compilation time, this raises a warning for all non-available (e.g. external) image URIs. This means, that in addition to a configuration setting we would need a convention how to override this setting so that individual images will *not* be read from the local file system. Something like `:scale: None`, `:scale: orginal`, or `:scale: False` that is currently not a valid argument for the scale option. Alternatively, the "senseless" special value `:scale: 0` may be used. --- **[feature-requests:#113] scale option in docutils.conf** **Status:** open **Group:** Default **Created:** Mon Apr 21, 2025 08:39 PM UTC by Aaron Schif **Last Updated:** Mon Apr 21, 2025 08:39 PM UTC **Owner:** nobody I would like all the images in the generated html to have width and height attributes to prevent content flashes. This is especially important with `loading: lazy`. The code to do this already mostly exists, but would be automatic if only I could set a default to `scale: 100%'. --- Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/docutils/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.