[Tex/LaTex] Tikz Node with rounded corners

tikz-pgf

I refer to this question: LaTeX Photo With Rounded Corners

I would like to round the corners of a Tikz node (which actually is a fitted node around two other nodes), but would like to have an additional black frame around it. If I just draw a black rounded frame around my node, it has to be very thick depending on the amount of clipping.

Is there a solution where I first remove the corners and then draw a black frame around the "rounded" node?

Here is an example:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit,positioning}

\begin{document}
\begin{tikzpicture}
    \node [inner sep=0pt,minimum size=4.0cm,outer sep=0pt,clip] (pict) at (0,0) {\includegraphics[width=4.0cm]{images/black.png}};
    \node [inner sep=0pt,minimum size=4.0cm,outer sep=0pt,clip,below = of pict] (pict2) at (0,0) {\Huge Hello};
    \node[draw=red,thick,fit=(pict)(pict2),rounded corners=.55cm,inner sep=2pt]    {};
\end{tikzpicture}
\end{document}

Best Answer

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit}

\begin{document}
\begin{tikzpicture}
   \node [inner sep=0pt,,outer sep=0pt,clip,rounded corners=0.5cm] (pict) at (0,0) {\includegraphics[width=4.0cm]{example-image-a}};
   \node[draw=red,thick,fit=(pict),rounded corners=.55cm,inner sep=2pt]    {};

   \node [inner sep=0pt,,outer sep=0pt,clip,rounded corners=0.5cm] (pict1) at (6,0) {\includegraphics[width=5.0cm]{example-image-b}};
   \node[draw=olive,thick,fit=(pict1),rounded corners=.55cm,inner sep=2pt]    {};
\end{tikzpicture}
\end{document}

enter image description here

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit,positioning}

\begin{document}
\begin{tikzpicture}
    \clip [rounded corners=.5cm] (0,0) rectangle (4,8);
    \node [inner sep=0pt,minimum size=4cm,outer sep=0pt] (pict) at (2,6)
         {\includegraphics[height=4.0cm]{example-image-a}};
    \node [draw,inner sep=0pt,minimum size=4cm,outer sep=0pt,clip] (pict2) at (2,2)
         {\includegraphics[height=4.0cm]{example-image-b}};
    \draw [red,line width=1pt,rounded corners=.5cm]
        ([shift={(0.5\pgflinewidth,0.5\pgflinewidth)}]0,0) rectangle
        ([shift={(-0.5\pgflinewidth,-0.5\pgflinewidth)}]4,8);
\end{tikzpicture}
\end{document}

enter image description here