Eitan Gurari wrote:
Steve,

The command

     htlatex demoarticle "html,jpg"

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips ....
        ...
System return: 0 System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...
        ...
System return: 0
-eitan

> Yes, I found that in the log file after you pointed it out, thanks. It > changes the html source code properly, so no need of Search & Replace. > > But first it seems it is needed to generate the .png files with htlatex. > > 1. copy demoarticle.tex (or something.tex) and drawing.eps to C:\demo
 > 2. "htlatex demoarticle.tex" to produce the .png files and html.
 > 3. "htlatex demoarticle.tex "html,jpg" changes the names in source code
 > 4. "mogrify  -format jpg  *.png" change all the .png to .jpg keeps .png
> > ImageMagicks mogrify batches a wizard's spell within the htlatex potion.






I tried again with the newer 6.2.8 ImageMagick.exe about 6.7mb.
It fails like in the first effort. Also attached is the
demoarticle.log from the previous Imagemagick install,
ImageMagick-6.2.3-2-Q16-windows-dll.exe
Next I will try the Imagemagick static.exe which is about 20mb.

6,815,492 ImageMagick-6.2.8-0-Q16-windows-dll.exe

t4ht.c (2004-04-21-00:17 Windows MiKTeX)
t4ht demoarticle.tex
Entering demoarticle.lg
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0e.png DEL hzfx0a0e.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 6 > zzdemoarticle.ps
System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0e.png -r110x110 -dEPS Crop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dba
tch -dNOPAUSE zzdemoarticle.ps -c quit

System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0d.png DEL hzfx0a0d.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 7 > zzdemoarticle.ps
System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0d.png -r110x110 -dEPS Crop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dba
tch -dNOPAUSE zzdemoarticle.ps -c quit

System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0c.png DEL hzfx0a0c.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 8 > zzdemoarticle.ps
System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0c.png -r110x110 -dEPS Crop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dba
tch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0b.png DEL hzfx0a0b.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 9 > zzdemoarticle.ps
System return: 0

System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0b.png -r110x110 -dEPS Crop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dba
tch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
Entering demoarticle.css
Entering demoarticle.tmp

---------------------------------------------------------

06/27/2006  02:57 PM               670 demoarticle.4ct
06/27/2006  02:57 PM               662 demoarticle.4tc
06/27/2006  02:57 PM               556 demoarticle.aux
06/27/2006  02:57 PM             5,253 demoarticle.css
06/27/2006  02:57 PM            20,048 demoarticle.dvi
06/27/2006  02:57 PM             7,988 demoarticle.html
06/27/2006  02:57 PM             3,004 demoarticle.idv
06/27/2006  02:57 PM             6,875 demoarticle.lg
06/27/2006  02:57 PM            15,350 demoarticle.log
01/31/2003  11:35 AM             3,720 demoarticle.tex
06/27/2006  02:57 PM                16 demoarticle.tmp
06/27/2006  02:57 PM               472 demoarticle.xref
01/31/2003  11:35 AM             7,434 drawing.eps
02/01/2003  10:06 PM            41,878 essential.tex
06/27/2006  02:57 PM               264 hzfx0a0b.png
06/27/2006  02:57 PM               302 hzfx0a0c.png
06/27/2006  02:57 PM               264 hzfx0a0d.png
06/27/2006  02:57 PM               265 hzfx0a0e.png
06/27/2006  04:34 AM             2,676 imagemagick.txt
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4) (preloaded format=latex 
2006.3.13)  27 JUN 2006 14:11
entering extended mode
**\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx\HCode\def\HCod
e##1{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g
@[EMAIL 
PROTECTED]@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\doc
umentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname te
x4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,[EMAIL PROTECTED]
ode}{\documentstyle[tex4ht]}}}\makeatother\HCode html,jpg.a.b.c.\input demoarti
cle.tex
(demoarticle.tex (C:\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size12.clo
File: size12.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (C:\texmf\tex\generic\tex4ht\tex4ht.sty
version 2004-10-23-17:52
Package: tex4ht 
--------------------------------------
--- Note --- for _ at preamble, use the command line option `early_'
--------------------------------------
--------------------------------------
--- Note --- for ^ at preamble, use the command line option `early^'
--------------------------------------
)
(C:\texmf\tex\generic\tex4ht\usepackage.4ht
version 2004-11-04-14:29
)
(C:\texmf\tex\latex\graphics\epsfig.sty
Package: epsfig 1999/02/16 v1.7a (e)psfig emulation (SPQR)

(C:\texmf\tex\latex\graphics\graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(C:\texmf\tex\latex\graphics\keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
[EMAIL PROTECTED]@=\toks14
)
(C:\texmf\tex\latex\graphics\graphics.sty
Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
 (C:\texmf\tex\latex\graphics\trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
) (C:\texmf\tex\latex\00miktex\graphics.cfg
File: graphics.cfg 2005/12/29 v1.2 MiKTeX 'graphics' configuration
)
Package graphics Info: Driver file: dvips.def on input line 80.

(C:\texmf\tex\latex\graphics\dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
[EMAIL PROTECTED]@height=\dimen103
[EMAIL PROTECTED]@width=\dimen104
)
\epsfxsize=\dimen105
\epsfysize=\dimen106
)
(C:\texmf\tex\latex\amsmath\amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
[EMAIL PROTECTED]

For additional information on amsmath, use the `?' option.
(C:\texmf\tex\latex\amsmath\amstext.sty
Package: amstext 2000/06/29 v2.01
 (C:\texmf\tex\latex\amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
[EMAIL PROTECTED]
[EMAIL PROTECTED]
)) (C:\texmf\tex\latex\amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
[EMAIL PROTECTED]
)
(C:\texmf\tex\latex\amsmath\amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
[EMAIL PROTECTED]
LaTeX Info: Redefining \frac on input line 211.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
LaTeX Info: Redefining \overline on input line 307.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
LaTeX Font Info:    Redeclaring font encoding OML on input line 567.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\multlinegap=\skip44
\multlinetaggap=\skip45
[EMAIL PROTECTED]
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
(C:\texmf\tex\generic\tex4ht\tex4ht.4ht
version 2004-10-12-14:48
--------------------------------------
--- Note --- for additional information, use the command line option `info'
--------------------------------------

::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file 
::::::::::::::::::::::::::::::::::::::::::
) (C:\texmf\tex\generic\tex4ht\tex4ht.sty
version 2004-10-23-17:52

--- needs --- tex4ht demoarticle ---
\tmp:cnt=\count99
(demoarticle.tmp)
\tmp:toks=\toks20
\tmp:dim=\skip46
--------------------------------------
--- Note --- for XML code, use the command line option `xml' or `xhtml'
--------------------------------------
 (demoarticle.xref)
\:refout=\write3
 (C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
--------------------------------------
--- Note --- to remove the DOCTYPE declaration use the command line option `no-
DOCTYPE'
--------------------------------------
)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
)
--------------------------------------
--- Note --- for marking of the base font, use the command line option `fonts+'

--------------------------------------
--------------------------------------
--- Note --- for non active _, use the command line option `no_'
--------------------------------------
--------------------------------------
--- Note --- for _ of catcode 13, use the command line option `_13'
--------------------------------------
--------------------------------------
--- Note --- for non active ^, use the command line option `no^'
--------------------------------------
--------------------------------------
--- Note --- for ^ of catcode 13, use the command line option `^13'
--------------------------------------

(C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
--------------------------------------
--- Note --- for alternative charset, use the command line option `charset=...'

--------------------------------------
--------------------------------------
--- Note --- for gif bitmaps, use the `gif' command line option
--------------------------------------
--------------------------------------
--- Note --- for content and toc in 2 frames, use the command line option `fram
es'
--------------------------------------
--------------------------------------
--- Note --- for content, toc, and footnotes in 3 frames, use the command line 
option `frames-fn'
--------------------------------------
--------------------------------------
--- Note --- for file extension name xht, use the command line option `xht'
--------------------------------------
TeX4ht package options: html,jpg
--------------------------------------
--- Note --- for inline CSS code, use the command line option `css-in'
--------------------------------------
--------------------------------------
--- Note --- for pop ups on mouse over, use the command line option `mouseover'

--------------------------------------
--------------------------------------
--- Note --- for addressing images in a subdirectory, use the command line opti
on `imgdir:.../'
--------------------------------------
)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
)
\:tokwrite=\toks21
\:tokpage=\toks22
--------------------------------------
--- Note --- for back links to toc, use the command line option `sections+'
--------------------------------------
--------------------------------------
--- Note --- for linear crosslinks of pages, use the command line option `next'

--------------------------------------
\:tocout=\write4

(C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
)
(C:\texmf\tex\generic\tex4ht\latex.4ht
version 2004-11-04-14:29
--------------------------------------
--- Note --- for links into captions, instead of float heads, use the command l
ine option `refcaption'
--------------------------------------
 (C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
--------------------------------------
--- Note --- for enumerated list elements li's without value attributes, use th
e command line option `li-'
--------------------------------------
--------------------------------------
--- Note --- for pictorial tabular, use the command line option `pic-tabular'
--------------------------------------
--------------------------------------
--- Note --- for bitmap fbox'es, use the command line option `pic-fbox'
--------------------------------------
--------------------------------------
--- Note --- for bitmap framebox'es, use the command line option `pic-framebox'

--------------------------------------
--------------------------------------
--- Note --- for inline footnotes use command line option `fn-in'
--------------------------------------
--------------------------------------
--- Note --- for a JavaHelp output format, use the command line option `javahel
p'
--------------------------------------
--------------------------------------
--- Note --- for tracing of latex font commands, use the command line option `f
onts'
--------------------------------------
--------------------------------------
--- Note --- for width specifications of tabular p entries, use the `p-width' c
ommand line option or a configuration similar to \Configure{HColWidth}{\HCode{ 
style="width:\HColWidth"}}
--------------------------------------
)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
--------------------------------------
--- Note --- for pictorial eqnarray, use the command line option `pic-eqnarray'

--------------------------------------
--------------------------------------
--- Note --- for pictorial array, use the command line option `pic-array'
--------------------------------------
--------------------------------------
--- Note --- for pictorial $...$ environments, use the command line option `pic
-m' (not recommended!!)
--------------------------------------
--------------------------------------
--- Note --- for pictorial $...$ and $$...$$ environments with latex alt, use t
he command line option `pic-m+' (not safe!!)
--------------------------------------
--------------------------------------
--- Note --- for pictorial array, use the command line option `pic-array'
--------------------------------------
))
(C:\texmf\tex\generic\tex4ht\fontmath.4ht
version 2004-11-04-14:29

(C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
))
(C:\texmf\tex\generic\tex4ht\article.4ht
version 2004-11-04-14:29
 (C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
--------------------------------------
--- Note --- for automatic sectioning pagination, use the command line option `
1', `2', or `3'
--------------------------------------
--------------------------------------
--- Note --- for i-columns index, use the command line option `index=i' (e.g., 
index=2)
--------------------------------------
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
))
(C:\texmf\tex\generic\tex4ht\epsfig.4ht
version 2004-11-04-14:29
 (C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
))
(C:\texmf\tex\generic\tex4ht\graphicx.4ht
version 2004-11-04-14:29

(C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
))
(C:\texmf\tex\generic\tex4ht\graphics.4ht
version 2004-11-04-14:29

(C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
--------------------------------------
--- Note --- if included graphics are of degraded quality, try the command line
 options `graphics-num' or `graphics-'. The `num' should provide the density of
 pixels in the bitmaps (e.g., 110). 
--------------------------------------
--------------------------------------
--- Note --- for key dimensions try the option `Gin-dim'; for key dimensions wh
en bounding box is unavailable try `Gin-dim+'; neither is recommended
--------------------------------------
)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
))
(C:\texmf\tex\generic\tex4ht\dvips.4ht
version 2004-11-04-14:29
 (C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
))
(C:\texmf\tex\generic\tex4ht\amsmath.4ht
version 2004-11-04-14:29
\tmp:muskip=\muskip11
 (C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
))
(C:\texmf\tex\generic\tex4ht\amstext.4ht
version 2004-11-04-14:29
 (C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
))
(C:\texmf\tex\generic\tex4ht\amsbsy.4ht
version 2004-11-04-14:29
 (C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
))
(C:\texmf\tex\generic\tex4ht\amsopn.4ht
version 2004-11-04-14:29
 (C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
))
(C:\texmf\tex\generic\tex4ht\html4.4ht
version 2004-11-04-13:16
)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht
version 2004-11-04-13:16
)) (demoarticle.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 21.
LaTeX Font Info:    ... okay on input line 21.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 21.
LaTeX Font Info:    ... okay on input line 21.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 21.
LaTeX Font Info:    ... okay on input line 21.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 21.
LaTeX Font Info:    ... okay on input line 21.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 21.
LaTeX Font Info:    ... okay on input line 21.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 21.
LaTeX Font Info:    ... okay on input line 21.
--- file demoarticle.css ---
 [1

] [2]
l. 41 Writing demoarticle.idv[1] (demoarticle0x.jpg)
l. 56 Writing demoarticle.idv[2] (demoarticle1x.jpg)

[3] [4] [5

] [6

] [7

] [8

]
l. 106 Writing demoarticle.idv[3] (demoarticle2x.jpg)
File: drawing.eps Graphic file (type eps)
 <drawing.eps> [9

] [10

] (demoarticle.aux) ) 
Here is how much of TeX's memory you used:
 4969 strings out of 95901
 50626 string characters out of 1195329
 199160 words of memory out of 1198848
 7755 multiletter control sequences out of 60000
 9789 words of font info for 36 fonts, out of 1000000 for 2000
 14 hyphenation exceptions out of 4999
 36i,16n,30p,693b,495s stack positions out of 5000i,500n,10000p,200000b,32768s

Output written on demoarticle.dvi (10 pages, 20048 bytes).

Reply via email to