I have the following MWE:
\documentclass{book}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
Lorem ipsum dolor sit amet, \(k_\delta=\frac{3 \mathit{EJ}}{l^3}\) consectetur:
\begin{equation*}k_\delta=\frac{3 \mathit{EJ}}{l^3}\end{equation*}
\begin{centering}
\includegraphics[width=0.5\textwidth]{myimage.eps}
\end{centering}
\end{document}
which compiles fine to html (with htlatex example.tex "myconfig, xhtml, charset=utf-8" " -cunihtf -utf8" under Ubuntu TeXLive), myconfig.cfg being
\Preamble{xhtml}
\Configure{graphics*}
{jpg}
{\Picture[pict]{\csname Gin@base\endcsname .jpg
\space width="\expandafter\the\csname Gin@req@width\endcsname"}}
\Configure{graphics*}
{png}
{\Picture[pict]{\csname Gin@base\endcsname .png
\space width="\expandafter\the\csname Gin@req@width\endcsname"}}
\begin{document}
\EndPreamble
Looking for a workaround to the unsolved problem of small image sizes in html output, I wrote a Python script which parses html source and doubles width and height of all images, getting in face of a new problem, poor quality of 'doubled' eps images. So I tried to increase density from 110x110 to 220x220 in tex4ht.env, <convert> section:
Gconvert -trim +repage -density 220x220 -transparent '#FFFFFF' zz%%4.ps %%3
This actually increased the resolution of eps images, so that now I can double their size in html source with my Python script, but also increased the size of math formula images (whose size is not affected by my Python script because they don't hold width nor height attributes).
Is there a way to increase eps images resolution without affecting math images size?
Here is a screenshot of the html output with doubled size of math formulas:


Gconvert -trim +repage -density 220 -geometry 50% -transparent '#FFFFFF' zz%%4.ps %%3or the resample option as inGconvert -trim +repage -density 220 -resample 120 -transparent '#FFFFFF'zz%%4.ps %%3` – Nasser Dec 31 '13 at 23:02Gconvert -trim +repage -density 220 -geometry 50% -transparent '#FFFFFF' zz%%4.ps %%3is also documented here http://tug.org/applications/tex4ht/mn3.html "Increase the density (number of dots per inch) when converting the pictures, and then sub-sample the picture." – Nasser Jan 01 '14 at 13:27