PDA

View Full Version : HTML Help Workshop: html without images



mondoemme
11-10-2004, 09:35 AM
Hi,

I've done many html page with text and image.
Then I've created an help guidi with "HTML Help Workshop".

The matter is that I've an help file with text but Without images.

Why the compiler doesn't save images to the final file?
As a result of compile run is:

Compiling c:\Lavori\SCGuida.chm


Compile time: 0 minutes, 1 second
17 Topics
32 Local links
0 Internet links
0 Graphics <--- why this is zero?


Created c:\Lavori\SCGuida.chm, 10,595 bytes
Compression increased file by 10,279 bytes.

thanx in advance

Paul Komski
11-10-2004, 02:14 PM
Most likely the graphic is not being correctly referenced within the html.

1) If you view the page containing the graphic in your browser does it render correctly there and display any images on that page correctly.

2) Are you using relative links for the graphics that the html page(s)reference? eg: src="yourgraphic.gif" or src="imagesfolder/yourgraphic.gif" etc and not absolute references showing the full path to mycomputer or to a web address. Absolute references should work OK but might not be correctly referenced at the time that you compile.

3) How are you referencing the html file that contains the graphic within the workshop. Directly by adding the file, by a reference from a toc or index file or by an indirect reference from another html file that contains a link to the problem page.

By all means post the source code of a relevant page here.


Created c:\Lavori\SCGuida.chm, 10,595 bytes
Compression increased file by 10,279 bytes.

PS
Its normal for compression to increase the file size for small compilations like this but to only be starting with 316 bytes for all your html pages and their graphics seems a bit off track - and implies they are not being correctly referenced and thus not compiled.

Paul Komski
11-10-2004, 02:22 PM
Most likely the graphic is not being correctly referenced within the html.

1) If you view the page containing the graphic in your browser does it render correctly there and display any images on that page correctly.

2) Are you using relative links for the graphics that the html page(s)reference? eg: src="yourgraphic.gif" or src="imagesfolder/yourgraphic.gif" etc and not absolute references showing the full path to mycomputer or to a web address. Absolute references should work OK but might not be correctly referenced at the time that you compile.

3) How are you referencing the html file that contains the graphic within the workshop. Directly by adding the file, by a reference from a toc or index file or by an indirect reference from another html file that contains a link to the problem page.

By all means post the source code of a relevant page here.


PS
Its normal for compression to increase the file size for small compilations like this but to only be starting with 316 bytes for all your html pages and their graphics seems a bit off track - and implies they are not being correctly referenced and thus not compiled.

mondoemme
11-11-2004, 06:22 AM
Here it's an extract of my code:
...
<P>&nbsp;</P>
<P><IMG alt=""
src="file://C:\Lavori\SupervisoreColonnineHELP\Immagini\Config urazionedibase\Path.jpg"></P>
<P>&nbsp;</P>
<P>Il programma si posiziona direttamente sulla cartella predefinita e ne visualizza il contenuto. </P>
<P>Tra i file elencati deve essere presente "Smart.mdb".</P>

Paul Komski
11-11-2004, 02:11 PM
Try changing:

src="file://C:\Lavori\SupervisoreColonnineHELP\Immagini\Config urazionedibase\Path.jpg"

to just

src="Path.jpg"

as long as Path.jpg is in the same folder as the html file using it.

That is a change from an absolute link to a relative link.