I am looking for locally compact Hausdorff spaces $X$ with the following property:
If $f:X\to Y$ is a perfect map onto locally compact Hausdorff space $Y$, then $Y$ is zero-dimensional.
One can see that if $|X|<\mathfrak{c}$, then $Y$ being a Tychonoff space of size $|Y|<\mathfrak{c}$, is necessarily zero-dimensional. In fact in this case we only need $f$ to be a continuous surjective map.
The inspiration for this question is this answer, and it will help me to produce more interesting examples of this type.
If $f:X\to Y$ is an open perfect map and $X$ is zero-dimensional, then $Y$ is zero-dimensional, see e.g. Engelking's General Topology. However, I am allowing $f$ which aren't open.
I am looking for sufficient conditions on the space $X$ so that it has the above property.
Of particular interest would be an example of such space $X$, which contains a compact non-scattered subspace (in particular, is not scattered).