Here is Prob. 3, Sec. 29, in the book Topology by James R. Munkres, 2nd edition:
Let $X$ be a locally compact space. If $f \colon X \to Y$ is continuous, does it follow that $f(X)$ is locally compact? What if $f$ is both continuous and open? Justify your answer.
I know that if $f$ is both continuous and open, then $f(X)$ is locally compact. Here is a Math Stack Exchange post containing a proof of how this holds?
What if $f$ is a continuous map that is not open?
I know that there is no such example of a continuous map $f \colon \mathbb{R} \to \mathbb{Q}$, though $\mathbb{R}$ is locally compact and $\mathbb{Q}$ is not, because every such map is constant, as has been discussed here and here.
Can we construct a counter-example of a (surjective) mapping $f \colon \mathbb{R}^n \to \mathbb{R}^\omega$?
After all, $\mathbb{R}^n$ is locally compact, whereas $\mathbb{R}^\omega$ is not, as has been discussed in Example 2, Sec. 29, in Munkres.
We can just take $Y$ equal to your favourite non-locally compact Hausdorff space and $X$ the same set but with the discrete topology on it.
Then taking $f$ to be the identity function, we have that $Y$ is a bijective continuous image of $X$ (what's called a "condensation" of $X$ in a lot of the literature) and $X$ is locally compact, metrisable, etc etc. while $Y$ is not locally compact by our setup.
E.g take $Y=\Bbb Q$ or $\Bbb P$ (the irrationals) or $\Bbb R^\omega$ (product, uniform or box topology; all are not locally compact); pick your favourite.
Indeed for open maps the situation is better: $f:X \to Y$ open and continuous, then let $y \in f[X]$ and let $x \in X$ be such that $f(x)=y$. Then in $X$ there is a compact $C$ such that $U \subseteq C$ for some open neighbourhood of $x$ (definition that Munkres gives on p. 182 of your edition). Then $f[C]$ is compact (by continuity of $f$) and contains the open neighbourhood $f[U]$ of $y$ (as $f$ is open). So $f[X]$ is locally compact.