On 30 July 2012 19:43, Wilhelm <[email protected]> wrote:
> Hi,
>
> just noticed, that the following doesn't work if generated with the data-uri
> option:
>
>
> Test
> ====
> WM
> :Author Initials: WM
> :lang: de
> :doctype: book
> :toc:
> :icons:
> :numbered:
>
> :iconsdir: images/icons
> :imagesdir: images
>
> doesnt work: image:{imagesdir}/icons/up.svg["Download",height=22]
Hi,
Yes, the embedded data mimetype is derived from the file extension,
which is fine for png, jpeg, gif, but the svg mime type is svg+xml
which isn't the extension. It probably also would not work for jpg.
Since svg is xml you should be able to simply include it without the data-uri.
Cheers
Lex
>
> works: image:{imagesdir}/icons/up.png["Download",height=22]
>
>
> --
> Wilhelm
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/asciidoc?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.