Skip to main content
July 23, 2009
Question

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

  • July 23, 2009
  • 2 replies
  • 8628 views

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.

This topic has been closed for replies.

2 replies

Participating Frequently
November 3, 2009

Hi, Yenelli

I've attached the script you need.

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

Peter Grainge
Community Expert
Community Expert
November 3, 2009

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

Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Participating Frequently
November 3, 2009

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 .

Peter Grainge
Community Expert
Community Expert
July 23, 2009

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

Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
RoboColum_n_
Legend
July 24, 2009

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


Read the RoboColum(n).