I would like to discuss a way how to reduce this file size as much as possible, focussing not so much on image formats etc. but on which files are really included in a .chm file by Flare - if you don't take corrective action...
As far as I understand the compilation procedure, Flare puts all files of the content folder into the .chm - all topics, style sheets, images - whether used or not.
As my project is designed for single-sourcing (CHM and PDF) with two subtypes of manuals (quick guide, manual), much of the content is not required in the .chm, e.g. because it may only be necessary for the print target.
The first lesson I had to learn was, that only excluding the topic/image file itself (by conditions) will remove the file from the later .chm. Conditions in the Master TOC have no influence here.
Most space is required by (large) images. Therefore, I split my images in two folders: online version and print version. Thereby I can easily exclude the whole print images folder from the .chm output. The same principle works for topics and the different manual types.
To explain my current image strategy: I insert small screens, buttons etc. at 100% size, for both online and print. Large screenshots are used in full resolution for print (set to maximum width of the print space), for online I use a resized version (e.g. max. width 500px, depending on help window).
As long as I really use separate image files (low and high resolution) for online and print, I can easily exclude the print versions from the .chm.
But since Flare 4, there is the new and beautiful parameter "max-width" which can be applied to images (combined with the option in the HTMLhelp target to create a nicely resampled, clean new version of the image). This makes it possible for me to do "real" single-source-imaging: I include only the print version of the image in the topic (for print, the size is already fine), and for the non-print media, I create a IMG class with e.g. "max-width: 500px;" which will generate the resized version for the CHM target. Very comfortable, and finally with good quality also in the resized image (used to be very ugly in former Flare versions...).
Well, there is one downside using this procedure: The print image and the resized online version both are included in the .chm - which can lead again to rather large .chm file sizes. And unfortunately, I cannot exclude any images using conditions, since the only image I insert is the print image (and I cannot exclude that of course!), and the resized version is done automatically by Flare during compilation, so that I have no influence at this point.
It seems rather useless to me, that Flare includes both, the original AND the resized version of the image...
You see the dilemma? Do you have any idea if there are other ways to tell Flare which files to include in a .chm and which not?
Any tip would be highly appreciated.
JJ