Asciidoctor and image orientation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Asciidoctor and image orientation

Yakov Fain
Hello,

I have an image that is properly rendered in portrait my Mac. After posting this image to Github, the orientation of this image became rotated: https://github.com/yfain/Java4Kids_NoStarchPress/blob/master/images/fig_12_nyc.jpg

Now when I build HTML using Asciidoctor the rotated image is inserted in the document (please scroll down the following page):
http://yfain.github.io/Java4Kids_NoStarchPress/Chapter_12.html 

Is there any way to rotate the image back in Asciidoc?  The following doesn't help:
image::images/fig_12_nyc.jpg[rotate=90]

Thank
Yakov Fain
 
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor and image orientation

mojavelinux
Administrator
Currently there is no support for image rotation in Asciidoctor. There is support for rotating font-based icons, so if you have them enabled, you could use the Font Awesome styles to perform rotation. Something like:

image::images/fig_12_nyc.jpg[role=fa-rotate-90]

Of course, you could put these in your custom stylesheet and then use any role you want. CSS has the ability to rotate elements.

We could consider promoting these styles to the default stylesheet (and we may have already proposed such an idea).

-Dan

On Tue, Feb 3, 2015 at 10:49 AM, Yakov Fain [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello,

I have an image that is properly rendered in portrait my Mac. After posting this image to Github, the orientation of this image became rotated: https://github.com/yfain/Java4Kids_NoStarchPress/blob/master/images/fig_12_nyc.jpg

Now when I build HTML using Asciidoctor the rotated image is inserted in the document (please scroll down the following page):
http://yfain.github.io/Java4Kids_NoStarchPress/Chapter_12.html 

Is there any way to rotate the image back in Asciidoc?  The following doesn't help:
image::images/fig_12_nyc.jpg[rotate=90]

Thank
Yakov Fain
 


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoctor-and-image-orientation-tp2757.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--