Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Hello,
I would like to scale an image as 75% of its original size. This is especially important when I'm further converting to docbook and PDF. There's the "scale" attribute in docbook but it doesn't seem to be used. Actually I would like to be able to define different scales depending on the output format. For example, the original scale is fine for HTML5 output but should be 75% or absolute size for PDF output. Is that possible? Thanks again. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Hi,
here you can find something very similar of what you are looking for: http://asciidoctor.org/docs/user-manual/#summary-7 I think that for HTML you can only use pixels, not percentage, if it is the case you can open an issue to add support to percentage too. Alex. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Thank you Alex. "scaledwidth" indeed looks like what I'm looking for.
And for my use case it's perfect that it "only applies to block images rendered to DocBook and then converted to PDF". However, I do not see how it is rendered to docbook. I have in my asciidoc file image::nicePicture.png[Whatever, scaledwidth="25%"] And in the docbook xml I have the following without any mentioning of scaledwidth ... <figure> <mediaobject> <imageobject> <imagedata fileref="nicePicture.png"/> </imageobject> <textobject><phrase>Whatever</phrase></textobject> </mediaobject> </figure> |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
|
Alex and @littlepanda, That does, indeed, look like what you're asking for. However, it's not implemented yet in Asciidoctor :/ But we can add it for the upcoming release! https://github.com/asciidoctor/asciidoctor/issues/763 There's an open question about the units in there. Cheers, On Tue, Oct 29, 2013 at 3:32 PM, littlepanda [via Asciidoctor :: Discussion] <[hidden email]> wrote: Thank you Alex. "scaledwidth" indeed looks like what I'm looking for. ... [show rest of quote] -- Dan Allen | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
@mojavelinux
Woohoo. This is great. Works like a charm. Thanks! |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
|
\o/ If you hit other bumps in the road, don't hesitate to post them here or in the issue tracker. We'll keep improving! -Dan On Nov 4, 2013 6:36 PM, "littlepanda [via Asciidoctor :: Discussion]" <[hidden email]> wrote:
@mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
In reply to this post by mojavelinux
Hi there!
I ruminate why "scaledwidth" image attribute is not translated into DocBook's "scalefit" by asciidoctor-maven-plugin... This feature is already marked as fixed in 1.5.0.rc.6+ but it seems that asciidoctor-maven-plugin doesn't track main asciidoctor in step. What is release policy or when asciidoctor-maven-plugin will include 1.5.0's support for "scaledwidth" image attribute? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
We have to wait for AsciidoctorJ to release. There will be a maven plugin release next week.
On Saturday, August 16, 2014, Libor Jelinek [via Asciidoctor :: Discussion] <[hidden email]> wrote: Hi there! -- |
Free forum by Nabble | Edit this page |