[sword-devel] Embedded figures : supported image formats and URI schemes ? Data URIs ?

Arnaud Vié unas.zole+avie at gmail.com
Sun Oct 26 13:04:54 EDT 2025


Hi all,

Looking at the ability to integrate images inside a bible through the OSIS
"figure" tag, I have a few questions, regarding which URI schemes and
which image formats are supported - or whether the figure src is
transformed in any way (eg. by osis2mod) before being sent to the rendering
engine.

The OSIS spec specifies the "src" attribute as xs:string, without details.
The OSIS manual explicitly allows any image format ("It can be used to
point to any type of image"), but this does not say if any format in
particular is required to be supported by all implementing libraries - and
it does not mention URI schemes either.
The crosswire wiki only contains one "figure" example, which is a local URI
src="picture.jpg"

Can a module writer assume that any image URI which is supported by in a
web view's "img" HTML tag can be used directly in an OSIS "figure" tag ?

In particular, would embedding a JPG/PNG/SVG file in the OSIS itself using
a data URI be supported ?
(data URIs allow including the binary data inside the URI itself, usually
base64 encoded).

Thanks and best regards,

Arnaud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://crosswire.org/pipermail/sword-devel/attachments/20251026/0e00f02b/attachment.htm>


More information about the sword-devel mailing list