Here is my MWE taken from here:
\documentclass[varwidth]{standalone}
\usepackage{ eso-pic,tikz, lipsum}
\usetikzlibrary{tikzmark}
\linespread{2}
\newcommand\BackgroundPic{%
\begin{tikzpicture}[overlay,remember picture]
\node[anchor=north west,inner sep=0pt, rounded corners=10pt] at ([yshift=8pt]pic cs:start) {%
\includegraphics[width=\textwidth]{example-image}};
\end{tikzpicture}}
\begin{document}
\AddToShipoutPicture*{\BackgroundPic}
\tikzmark{start}\lipsum[1-1]\tikzmark{end}
\end{document}
I would like the background image to be with rounded corners. But it does not work.
How do I get the background image with rounded corners?


height=along withwidth=inincludegraphics. But this can alter the aspect ratio. – nidhin Dec 09 '18 at 12:40textwidth. So the image height with respect to its width matters not the absolute height. Try with another image having a height more than its width. Say 1052 *744 :) – nidhin Dec 09 '18 at 12:47