Topic
6 replies Latest Post - ‏2012-10-23T16:38:10Z by a.mansoor
SystemAdmin
SystemAdmin
1299 Posts
ACCEPTED ANSWER

Pinned topic Image sizing and publishing

‏2010-06-16T08:01:34Z |
Is it possible in RPE, to automatically use a Landacape Page when a 'wide' image is found?

At the moment, we use the WEXP 'WEXP Section Break' to swap to a Landscape Page for a large image. The User has to set this up manually and then remember to put a 'Portrait' break in afterwards.
I have mirrored this functionality in RPE and works well.

However, rather than just emulating WEXP, it would be an advantage of RPE to be able to swap to a Landscape page automatically for the User.
Updated on 2012-10-23T16:38:10Z at 2012-10-23T16:38:10Z by a.mansoor
  • SystemAdmin
    SystemAdmin
    1299 Posts
    ACCEPTED ANSWER

    Re: Image sizing and publishing

    ‏2010-06-16T08:52:34Z  in response to SystemAdmin
    Hi Dave,

    At this time, your request is not possible.
    You can create an RFE for it, if you want.

    Milan
    • SystemAdmin
      SystemAdmin
      1299 Posts
      ACCEPTED ANSWER

      Re: Image sizing and publishing

      ‏2010-10-19T20:38:53Z  in response to SystemAdmin
      Is it possible to detect an image programmatically? Further, is it possible to determine the width of the image programmatically, all before actually exporting the image?

      What I am envisioning is a query on a Container element that has a script associated with it that evaluates the results of the query for an image. If an image is found, the script evaluates the width of the image. If the image is too wide for the page, a subsequent Paragraph element would publish the image with a landscape Master Page. If the image would fit on a portrait page, a subsequent Paragraph element would publish the image normally.
  • Dragos.Cojocari
    Dragos.Cojocari
    1375 Posts
    ACCEPTED ANSWER

    Re: Image sizing and publishing

    ‏2010-10-20T10:23:57Z  in response to SystemAdmin
    Hey Bob,

    at this time it is not possible to use the image dimensions in scripts.

    Regards,
    Dragos
    • SystemAdmin
      SystemAdmin
      1299 Posts
      ACCEPTED ANSWER

      Re: Image sizing and publishing

      ‏2010-10-20T13:03:30Z  in response to Dragos.Cojocari
      Do you have any other ideas or creative ways to accomplish the goal of automatically rotating to landscape mode for wide images?
  • Dragos.Cojocari
    Dragos.Cojocari
    1375 Posts
    ACCEPTED ANSWER

    Re: Image sizing and publishing

    ‏2010-10-22T09:12:58Z  in response to SystemAdmin
    Hey Bob,

    not within RPE as the image's properties are not accessible in RPE's scripting context. But you could do this with a Word macro as you can access the images, their dimensions as well as the page's dimensions.

    Regards,
    Dragos

    Message was edited by: Dragos.Cojocari
    Updated on 2010-10-22T09:12:58Z at 2010-10-22T09:12:58Z by Dragos.Cojocari
  • a.mansoor
    a.mansoor
    17 Posts
    ACCEPTED ANSWER

    Re: Image sizing and publishing

    ‏2012-10-23T16:38:10Z  in response to SystemAdmin
    This thread is old, but hopefully this might help someone

    I am using DOORS 9.3 and RPE 1.1.2.2 and there is a way to detect when the current object is an image. One of the Object Attributes is Picture which returns the text True or False depending on whether or not the current object contains an image.