Skip navigation
yenelli
Currently Being Moderated

Script to "Reset size" for all images in a RoboHelp project

Jul 23, 2009 1:47 PM

New UI. Quick fix to pull new screenshots is hampered by the size constraints of graphics.

Is there a (third party or built in) script that will reset size for all the images in a RoboHelp HTML project?

 

RH8, RoboHelpHTML bulished as WebHelp.

 

PS the filter in Adobe Forums doesn't allow me to limit the search to RoboHelp HTML and WebHelp; I don't have any other Adobe products, so all the hits don't apply.

  • Currently Being Moderated
    Community Professional
    Jul 23, 2009 1:59 PM

    Faststone Resizer will resize the images assuming you want them all one size or can run several passes picking different files each time.

     

    Download their free viewer too. It is excellent.

     

    http://www.faststone.org/

     

    Do make a copy of your project first.

     

    You will have to go through each topic that has images, right click on each image and reset the size. RH's settings in the topic are for the size you want to display which may not be the image size.

     

    Maybe import one topic into a test project to try it out first.

     


    See www.grainge.org for RoboHelp and Authoring tips

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Jul 24, 2009 2:58 AM

    Another option, if you don't mind writing a script, is to use the Script Explorer feature in RH8.

     


    Read the RoboColum(n).

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Nov 3, 2009 9:10 AM

    Hi, Yenelli

    I've attached the script you need.

    Just save it with the "jsx" extension and import it to Robohelp.

    Attachments:
    |
    Mark as:
  • Currently Being Moderated
    Community Professional
    Nov 3, 2009 10:01 AM

    Before setting that loose on a project, could you tell us a bit about the logic?

     

    All images to one size, all images to a percentage, and so on or does it take a given image and then resize it in all topics that use that image?

     


    See www.grainge.org for RoboHelp and Authoring tips

    @petergrainge

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Nov 3, 2009 10:31 AM

    The logic is simple: remove image's dimensions so Robohelp can set them from the file.

    It is similar to the "Reset image" operation which can be executed from the image's context menu.

     

    In my everyday work I need this operation to be executed in each topic for every image for the localized HTML-files.

    Screenshots in each localized version may be different sizes, but localized HTML-files are generated automatically using "old" information about image dimensions.

     

    Now in Robohelp 7 I must open each topic and execute "Reset image" manually.

    That's why I've downloaded the trial of Robohelp 8 and created this script.

    Off: I'm waiting for my company purchase RH8...

     

    I think the main problem here is how to identify image in the HTML.

    Since you have solved this problem - you are free to do anything with the images .

    |
    Mark as:
  • Currently Being Moderated
    Community Professional
    Nov 3, 2009 10:44 AM

    Thanks.

     


    See www.grainge.org for RoboHelp and Authoring tips

    @petergrainge

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Nov 3, 2009 9:29 PM

    Nice script indeed, This script can be modified to set the image size to any predefined size as well.

    -Praful Jain

    |
    Mark as:
  • Currently Being Moderated
    Nov 5, 2009 4:33 AM

    Hi,

     

    I have saved the file with jsx on at the end, placed in in the right folder, but when I try to import it in Robohelp it cannot find the textdocument.

     

    How do I import it to Robohelp?

    Which option do i choose? (see attached image)

    The script is still a text document altough it is saved with jsx at the end? should it convert to another format there, or is it right that its still a textdoc?

     

    Have a release coming up in a few days so its quite a hurry and there is hundreds of images to resize.

     

    Thanks a lot!

    Attachments:
    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Nov 5, 2009 4:43 AM

    It is not imported from the file menu. Display the Script Explorer pod (View > Pods > Script Explorer). Then right click on it and select the Import option and point to the .jsx file.

     


    Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
    Follow me @robocolumn.

    |
    Mark as:
  • Currently Being Moderated
    Community Professional
    Nov 5, 2009 4:45 AM

    View > Pods  > Script Explorer.

     

    Right click there and you will see import.

     


    See www.grainge.org for RoboHelp and Authoring tips

    Follow me @petergrainge

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Nov 5, 2009 5:14 AM

    Thanks a lot for your quick answers Peter and McAndrew!

     

    Maybe I don't have that oportunity in my version of Robohelp 7. I just get the opitions shown in the attached screenshot below.

    I have tried some of the alternatives, for example snippets but it does not find the jsx file.

     

    /Åsa

    Attachments:
    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Nov 5, 2009 5:34 AM

    Sorry.. this functionality is available in Robohelp 8 only.

    I have this problem too.

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Nov 5, 2009 5:47 AM

    Hi,

    Support for Extendscript is added in RoboHelp 8.0 version. Earlier version of RoboHelp dont have extendscript feature.

    -Praful

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Nov 5, 2009 5:49 AM

    Okay,

     

    Thanks a lot for all help!

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Feb 22, 2010 12:19 PM

    If I have a FM book linked by reference into RH and I am using this script, will I have to re-run the script everytime I update the FM books, before I publish the WebHelp?

     

    And do I need to change anything in the script, besides the extension of the file to .jsx? I imported the script, click RUN, but nothing happened.

     

    Thanks,

    Adriana

    |
    Mark as:
  • Currently Being Moderated
    Community Professional
    Apr 7, 2010 11:26 PM

    Probably nothing more than a complete rework of RoboHelp.

     

    Scripts get imported into the script editor and run from there when you want to use them, not from the Tools Pod.

     

    The ReSize Tool resizes a specific image to the size you define when you use it.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points