I have the following MWE with some images:
\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}
\end{centering}
\end{document}
which compile as expected with pdflatex myfile.tex to pdf output, with one image half of the text width and the other same width as text. Then, using the following config file (needed to obtain images with correct relative sizes):
\Preamble{xhtml}
\Configure{graphics*}
{jpg}
{\Picture[pict]{\csname Gin@base\endcsname .jpg
\space width="\expandafter\the\csname Gin@req@width\endcsname"}}
\begin{document}
\EndPreamble
I compile the same source with htlatex myfile myconfig, in order to obtain an html version of my document. Image sizes are correct among themselves, but they are too small compared to text size. I guess this has something to do with the fact that html has not a fixed page width, so tex4ht has to choose a value to be used has 'page width', and such value is too small, at least for me.
Is there a 'TeX way' to scale all images in html output by a factor?
Of course I could increase the width of images in my latex source, but that would be time consuming and would affect pdf too, which is undesiderable.
Or I could write some external script to parse html output and manipulate image sizes in html source, but I'd prefer a TeX-confined solution.
Someone might like to be informed that the present question arised from this other question.
UPDATE
Given that many days have passed with no answers, I'll open the question to answers which are not TeX-confined. See below for a possible solution.