<div class="gmail_quote">On Fri, Mar 22, 2013 at 1:31 PM, Nasser M. Abbasi <span dir="ltr"><<a href="mailto:nma@12000.org" target="_blank">nma@12000.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Is there a way to make tex4ht use .png files and not having<br>
to covert all the images to .eps?<br>
<br>
I am trying to build large latex document with hundreds of<br>
lines like this:<br>
<br>
\documentclass{article}<br>
\usepackage{graphicx}<br>
\begin{document}<br>
....<br>
\includegraphics[scale=0.7]{<u></u>image_1.png}<br>
\includegraphics[scale=1]{<u></u>image_2.png}<br>
...<br>
\end{document}<br></blockquote><div><br></div><div>Need to provide the following either in your custom *.cfg or after \begin{document} of your document source:</div><div><br></div><div><div>\Configure{graphics*}</div><div>

  {eps}</div><div>  {\Picture[pict]{\csname Gin@base\endcsname.png</div><div>       width="\expandafter\the\csname</div><div>          Gin@req@width\endcsname"</div><div>           height="\expandafter\the\csname</div>

<div>           Gin@req@height\endcsname"</div><div>      }%</div><div>   }</div></div><div><br></div><div>You still need to keep *.eps versions of your *.png's since TeX cannot read *.png files and .eps is meant to find the bounding boxes alone so that your \includegraphics options work correctly. This way, you can make TeX4ht to use .png files in your output.</div>

<div><br></div><div>Attached is a small archive, nasser.zip, which contains a test file and output.</div><div><br></div><div>Best</div></div>-- <br>Radhakrishnan<br><a href="https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1" target="_blank">River Valley</a><br>

<br>