I want to make a shaded image border. My current solution is using \shadowbox
:
\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage{fancybox, graphicx}
\begin{document}
\shadowsize=1mm
\color{blue}
\shadowbox{\fboxsep=3mm\fcolorbox{white}{white}{\includegraphics[width=12cm,height=8cm,keepaspectratio]{example-image-a}}}
\end{document}
So 1) there must be a white border 2) which casts a shadow. But this creates a very "simple", solid shadow:
I would like to achieve a more "blurry effect".
Based on this answer I wrote something like this:
\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage[skins]{tcolorbox}
\usepackage{fancybox, graphicx}
\begin{document}
\begin{center}
\begin{tcolorbox}[enhanced,width=12cm,height=8cm, center upper,
fontupper=\large\bfseries,drop fuzzy shadow southeast,
boxrule=0.4pt,sharp corners,colframe=yellow!80!white,colback=white!10]
\includegraphics[width=12cm,height=7.9cm,keepaspectratio]{example-image-a}
\end{tcolorbox}
\end{center}
\end{document}
but as you can see, I need this colorbox to scale with my image (which is max 8x12cm, keeping aspect ratio).
I saw some overly complicated answers with applying some rules but I really believe there must be a simpler solution.
Besides - can the above solution actually drop shadows to 4 sides of the world, not only southeast
etc?