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