It is well-known that the inclusion $f[\overline A] \subseteq \overline{f[A]}$ (for every subset $A$) characterizes continuous functions.1
Asking similar questions for other closure operators seems to be a rather natural question. So this leads me to the question:
Let $X$, $Y$ are vector spaces and $f\colon X\to Y$. Which functions have the property $$f[\operatorname{conv} A] \subseteq \operatorname{conv} f[A]\tag{1}$$ for each $A\subseteq X$, where $\operatorname{conv} A$ denotes the convex hull of the set $A$?
And what about the following property? $$f[\operatorname{conv} A] = \operatorname{conv} f[A]\tag{2}$$
It is relatively easy to see that affine maps fulfill both of them, simply because they preserve convex combinations.2 But it is not immediately clear whether the above properties characterize affine maps. EDIT: Now some counterexamples showing that (1) and (2) can hold for some maps which are not affine were posted in the comments. In fact, I'd say that those counterexamples make it seem less likely that there is a nice characterization of functions with these properties.
1This result can be found on many textbooks, but there are also some posts on this site with the proof of this fact. See Prove that the following statements are equivalent characterizations of continuity or $f$ is continuous at $a$ iff for each subset $A$ of $X$ with $a\in \bar A$, $f(a)\in \overline{ f(A)}$.
2In fact, a transformation is affine if and only if it preserves convex combinations. See: Is every convex-linear map an affine map?