Skip navigation
Currently Being Moderated

Unused images compiled into CHM

Feb 22, 2012 2:38 AM

When using conditional build tags in RoboHelp to exclude topics in a generated CHM file, the images used in these topics are compiled anyway.

So, the HTML files are not integrated (using the build tags), the images used in these HTML files are ...

 

In my case:

 

I want to generate a separate CHM file which contains only a very small subset of the full manual (API specifications for third party vendors) .

This CHM only contains about 10 HTML files, but still amount to 13MB because all images from the entire manual are compiled into the CHM.

 

How can this be avoided ?

 

Many thanks !

John Victor

 
Replies
  • Anjaneai Srivastava
    1,028 posts
    Oct 17, 2011
    Currently Being Moderated
    Feb 22, 2012 6:48 AM   in reply to MIPS_John

    Hello John,

     

    So, as per my undertsanding, your CHM output is not displaying images or topics that were excluded via CBT, but the Compilation does include those images, hence they are adding to the size of the CHM output. Correct?

     

    Seems to be an intresting scenario. As a test, Can you rename the CHM output, located inside the ProjectsDirectory/!SSL!/ . i.e (filename.chm to filename.zip) and then extract the zip file, it would uncompress the contents and display you all it holds, see, if you find those excluded topics or any graphics that were contained in those excluded topics?

     

    Thanks,

    Anjaneai

     
    |
    Mark as:
  • Anjaneai Srivastava
    1,028 posts
    Oct 17, 2011
    Currently Being Moderated
    Feb 22, 2012 8:16 AM   in reply to MIPS_John

    Hello John,

     

    I just now created a Project with the exact scenario that you explained.

     

    I used the HTML Help Studio (View--Pods--Toolbox), to check the contents of the CHM  -- CHM only contains TopicA (the one without images).

     

    When you launch this utility and open you CHM it would show all the contnets inside it that were used during compilation process.

     

    In the same scenario, i checked it was not displaying the Graphics from Topic B, neither the Topic B itself. So in your case, the 13 MB size could have been because of some other objects, you can determine that too, with HTML help Studio.

     

    hope it helps.

     

    Thanks,

    Anjaneai

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 22, 2012 6:02 PM   in reply to MIPS_John

    Are you perhaps applying build tag in the Table of Contents pod, rather than on the topic itself? I believe this method will only remove the topic from the TOC and the topic  remains in the compiled chm. This would explain why the chm file size remains large.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 22, 2012 7:25 PM   in reply to Amebr

    Excellent suggestion, Amebr!

     

    Will we be seeing you at Writer's UA this year?

     

    Cheers... Rick

     

    Helpful and Handy Links

    RoboHelp Wish Form/Bug Reporting Form

    Begin learning RoboHelp HTML 7, 8 or 9 within the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone Blog

    RoboHelp eBooks

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 22, 2012 11:59 PM   in reply to Amebr

    A search on something in the "excluded" topic would confirm Amber is right.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 23, 2012 12:07 AM   in reply to MIPS_John

    John

     

    It might be worth trying again with the image. I just had a problem with the forum so maybe it was a glitch.

     

    I assume you have checked the images are not set as baggage files.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2014 3:44 AM   in reply to MIPS_John

    Hi John,

    Did you solve the problem?

     

    I have the same one...

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2014 5:03 AM   in reply to MIPS_John

    I have just installed MadCap Flare 10, imported my RoboHelp project and generated 3 CHM files with different conditional text tags.

    Sizes of these CHM files are identical and they are a little bit larger than CHM generated by Robohelp

    The problem with images still resist...

    All images in my project occupy 1.2 Mb of disk space and CHM is 1.4 Mb, but not all of these images are used for all output targets.

     

    So, how did you solve this problem by moving to MadCap Flare?

     

    Thanks in advance for your answer!

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2014 5:36 AM   in reply to MIPS_John

    John, thanks a lot! Now I see this functionality

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2014 5:42 AM   in reply to MIPS_John

    In Rh you don't put the condition on the image file, you put it on the image in the topic. You might want it tagged out of one topic but not another.

     

    You can also apply a tag to a folder and that will apply to all topics in that folder.

     

    What I am wondering here is are you sure the images are getting included? Add the text "redrabbit" to a topic where an image should be tagged out. Generate and search for redrabbit. Is the image showing or not?

     

    The way to prove the point would be to create a single topic project with an image, tag it out, and then reverse engineer the CHM.

     

    Picking up on an earlier point, is the tag being applied to a topic or an image?

     


    See www.grainge.org for RoboHelp and Authoring tips

     

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2014 9:14 AM   in reply to MIPS_John

    Hi

     

    I tried at my end in RH9 and in RH 11.

     

    I created two topic

    Topic 1 and Topic 2 (having image)

     

    I applied tag on topic 2, and filtered it through CBT on CHM output.

     

    I checked in the output by unzipping it, image was not there. The size of CHM was smaller too.

     

    RH removes unreferenced images or topics.

     

    I am not sure how it is not working at your end.

     

    Please feel free to share the project where it is not working for you.

     

    Thanks

    Amit Jha

     
    |
    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