Skip to main content
June 4, 2009
Question

changing file format for images

  • June 4, 2009
  • 1 reply
  • 4714 views

To save on memory, my boss wants me to change my images from bitmaps to png files. Should I go imto the project folder and open each file and re-save it, then make sure the link has the right extension. Any thoughts on the best way to do this?

    This topic has been closed for replies.

    1 reply

    Peter Grainge
    Community Expert
    Community Expert
    June 5, 2009

    Changing the image type will save on space and could improve load times but are they sufficiently large to be an issue worth the effort?

    If you convert, you will need some software that converts the image type. You could open them in RoboScreenCapture and resave them or you could use a batch tool. Either way, you will need to relink to the images.


    See www.grainge.org for RoboHelp and Authoring tips

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

    Hi,

    There are many ways to handle this scenario, but all require RoboHelp 8 and some knowledge of scripting feature provided in RoboHelp 8.

    I am giving you a simple solution to the problem. Before going ahead, please backup your project folder.

    I am assuming here that you want to change the image file from .bmp to .png.

    1. Go to any image editing software and change all the images in the project folder from .bmp to .png. Please donot change the image file name just change the extension. so if you have an image with name sun.bmp change create a new file with name sun.png, in the same folder where sun.bmp is present.
    2. Create a script file using the Extendscript feature provided with RoboHelp 8. I am attaching a script file which does the job for you. Please click here to download the script filehttps://share.acrobat.com/adc/document.do?docid=355276bf-f114-406a-8d48-19ffe177846c
    3. Download the script file on your machine. Open the project in RoboHelp 8, open Script explorer pod and import the script file you have downloaded.
    4. Select the script file and click on run or right click script file and select run.
    5. The script file will read all the topics and snippet files present in your project and read the image tag. if there is an image file with .bmp extension, it will change that image file extension to .png and update the topic file.
    6. You are done with updating your project with new image extensions.

    Again RoboHelp 8 has many more scripting features.

    Hope this helps

    -Praful

    Adobe RoboHelp Team.

    Praful_Jain
    Participating Frequently
    June 5, 2009

    Hi,

    For batch conversion of Image files, you have plenty of options, First option is Adobe Photoshop, provided you have the license. Adobe Photoshop provides many batch image conversion options.

    In case, if you are looking for some free alternative then there are many batch image conversion tools available. One of them is lead tools command line tool. http://www.leadtools.com/Utilities/Cmd-Line/File-Converter/ you can search for many more batch image conversion tools.

    You just need to install this tool and run the command LFC.exe C:\myprojectfolder  /f=FILE_PNG /L"c:\conversion.log" /S

    This will convert all the images in myprojectfolder to png and also create a log file at c:\conversion.log.

    Again after you are done with conversion of images using any batch tool. just run the script file  and your project should be up and running.

    -Praful