I have a complex document which I'm trying to convert to html with tex4ht and TeXLive under Ubuntu, but I'm not able to coherently control the image size of jpg and eps images. In html output, jpg images get direct reference to original image and seems to display at 1 to 1 pixel, while eps images are converted into a png image whose size is specified in html but seems to display too small. In both (or at least some) cases the original \includegraphics[width=mymeasure]{myimage.jpg-eps} specification isn't respected. I've tried a lot of tricks, configurations and snippets (like this and this) without success.
Is it possible to transfer the size specified for images in LaTeX source to html output?
Here is my MWE:
\documentclass{book}
\usepackage{graphicx}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipisici elit:
\begin{centering}
\includegraphics[width=0.5\textwidth]{myimage.jpg}
\includegraphics[width=1.0\textwidth]{myimage.jpg}
\includegraphics[width=0.5\textwidth]{myimage.eps}
\includegraphics[width=1.0\textwidth]{myimage.eps}
\end{centering}
\end{document}
which I compile with htlatex myfile.
And here is the html output.

As you can see, the big (as well as the small) jpg and eps images should have the same (100%) width, whereas they don't (in html, but they do in the pdf).
Also, the two jpg images should have one the half width of the other, whereas they don't (in html, but they do in the pdf).

jpgimages resized accordingly toepsimages, so I guess there noepsbounding box issue. Only one detail: adding config code forpngas you said, a strange line ('png pict') shows up at beginning ofhtml. Maybe it's because I don't actually have anypngimage? (but I will in real document) Could you addpngto your config code to make sure I used the right code? (and that you don't have such issue) – mmj Dec 10 '13 at 18:30pngconfiguration – michal.h21 Dec 10 '13 at 19:04\Configure{graphics*}row. No doubt you brilliantly solved this problem, nonetheless the1.0\textwidthimage width is smaller than I wish, when I compare it with font size, inhtmloutput. Is there a way to telltex4htto scale all images by a factor? – mmj Dec 10 '13 at 22:16-Doption) – michal.h21 Dec 11 '13 at 09:48Gin@req@widthis the width that appears inhtmloutput. Isn't there a way to manipulate that value so that it can be multiplied by a factor? – mmj Dec 11 '13 at 11:20htmloutput is affected (<img width="172.5pt* 1.5" alt="pict" src="myimage.jpg"></img>), but visualization is not, I guess because the multiplication is simply ignored. – mmj Dec 11 '13 at 15:57