Rotating an image

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Post Reply
Ga Bowen
Posts: 324
Joined: Mon Jun 27, 2016 5:05 pm

Rotating an image

Unread post by Ga Bowen »

Is this possible?!

I can't find a way to do it and I don't fancy having to create multiple images of something just because I want to change the orientation!
Simon Dismore
Posts: 454
Joined: Thu Nov 16, 2006 1:29 pm
Location: London, UK

Re: Rotating an image

Unread post by Simon Dismore »

Ga Bowen wrote:Is this possible?! I can't find a way to do it and I don't fancy having to create multiple images of something just because I want to change the orientation!
You could do this if H&M supported fragment identifiers in image URIs, as proposed here, e.g. like this:
svg-image-wrapper-scales-and-rotates.gif
You do not have the required permissions to view the files attached to this post.
User avatar
Tim Green
Site Admin
Posts: 23155
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Rotating an image

Unread post by Tim Green »

You can flip, rotate and perform a wealth of other operations on your images with the integrated Impict image editor in Help+Manual. Just click on the image in the Help+Manual editor to select it, then right-click on it and select Picture > Edit with Impict in the context menu to edit it. Then right-click on the image and select Resize and Effects to open the dialog with all the different tools you can use for filtering, flipping, rotating etc.

After rotating you will generally need to reset the canvas background with the Auto Adjust Size next to the Zoom tool. Press F1 in Impict for full documentation.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Ed Hawco
Posts: 165
Joined: Thu Nov 07, 2013 5:50 pm
Location: Montreal
Contact:

Re: Rotating an image

Unread post by Ed Hawco »

I think I know the answer already ("no") but I'll ask anyway. Is there a way to rotate an image *without editing the image itself?*

As in, so the same image file can be used elsewhere in the document un-rotated. (I don't want to have two copies of the image file; I'd rather just change the orientation within H&M).

Here's my use-case: I have a few large and complex diagrams that appear in both HTML output and PDF. In the PDF version, the images are so small (because they are restricted to the width of a physical page) that the text is hard to read. So I would like to add a section at the back of the document (PDF build only) where such diagrams appear full-page and rotated. When the images are added in the main part of the document, I would include a line (which appears in the PDF-only build) that says "for a larger version of this diagram, see [XREF to PDF-only "Diagrams" section at the back].

I'm guessing there's no easy way to do that.

Feature request: add a "rotate" feature to the Image properties, to make this easy. :-)
e
d
============================================
Ed Hawco
User avatar
Martin Wynne
Posts: 2656
Joined: Mon May 12, 2003 3:21 pm
Location: West of the Severn, UK

Re: Rotating an image

Unread post by Martin Wynne »

Ed Hawco wrote:I think I know the answer already ("no") but I'll ask anyway. Is there a way to rotate an image *without editing the image itself?*
Hi Ed,

You can do this in HTML-based output using transform in CSS. So for example:

Code: Select all

<div style="transform:rotate(30deg);">
  <img src="...    >
</div>
So you could insert your image as intended in the PDF, and rotate it for the HTML version using an HTML Code Object (or two of them, if you want to insert the image normally in H&M between them).

How well it works depends on which browser you try. In Edge at least, you don't need the containing <div>:

Code: Select all

<img style="transform:rotate(30deg);" src="...       >
You need to adjust the para margins above and below accordingly. Positive angles rotate clockwise, negative angles anti-clockwise.

regards,

Martin.
User avatar
Ed Hawco
Posts: 165
Joined: Thu Nov 07, 2013 5:50 pm
Location: Montreal
Contact:

Re: Rotating an image

Unread post by Ed Hawco »

Thanks, Martin. Your solution is interesting, but a bit much for my purposes.

I'll wait for the "Rotate" button. :-)
e
d
============================================
Ed Hawco
Post Reply