Skip navigation
yenelli
Currently Being Moderated

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

Jul 23, 2009 12: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.

 
Replies
  • Currently Being Moderated
    Jul 23, 2009 12:59 PM   in reply to yenelli

    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:
  • RoboColum(n)
    5,356 posts
    Oct 8, 2004
    Currently Being Moderated
    Jul 24, 2009 1:58 AM   in reply to Peter Grainge

    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
    Nov 3, 2009 8:10 AM   in reply to yenelli

    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
    Nov 3, 2009 9:01 AM   in reply to Chashnikov

    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
    Nov 3, 2009 9:31 AM   in reply to Peter Grainge

    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
    Nov 3, 2009 9:44 AM   in reply to Chashnikov

    Thanks.

     


    See www.grainge.org for RoboHelp and Authoring tips

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 3, 2009 8:29 PM   in reply to Peter Grainge

    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 3:33 AM   in reply to Chashnikov

    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:
  • RoboColum(n)
    5,356 posts
    Oct 8, 2004
    Currently Being Moderated
    Nov 5, 2009 3:43 AM   in reply to AsaStockholm

    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
    Nov 5, 2009 3:45 AM   in reply to AsaStockholm

    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
    Nov 5, 2009 4:14 AM   in reply to Peter Grainge

    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
    Nov 5, 2009 4:34 AM   in reply to AsaStockholm

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

    I have this problem too.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 5, 2009 4:47 AM   in reply to Chashnikov

    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
    Nov 5, 2009 4:49 AM   in reply to Praful_Jain

    Okay,

     

    Thanks a lot for all help!

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 22, 2010 11:19 AM   in reply to Praful_Jain

    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
    Apr 7, 2010 10:26 PM   in reply to yenelli

    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:
  • Currently Being Moderated
    Nov 25, 2012 10:44 PM   in reply to Chashnikov

    I already imported your .jsx file to my project and run the script. It worked well. It made  all images return to original size.

    Next, I resized all images in the shared folder and then synchronized to the project, generated to .chm to se the result.

    I saw images look good but with images those put inside dropdown hotspot, it seemed that they are too small.

     

    Please help me check this situation. Thank you.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points