Here's a compilable code. The drop shadow isn't right. How can I improve it ?
The shadow thickness is too strong. I don't know how to change it.
And is it possible to make the shadow fuzzy (blurry) ?
The shadow should be very subtle, with the same thickness at the right side and below the picture's frame. Currently, it's very hard to adjust the shadow. There must be a simpler way to do this.
Code: Select all
\documentclass[12pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\usepackage{here}
\usepackage{tikz}
\usetikzlibrary{shadows}
\definecolor{background}{RGB}{225,225,220}
\pagecolor{background}
\fboxsep=2mm
\begin{document}
\begin{figure}[H]
\centering
\tikz\node[drop shadow={
top color=gray,
bottom color=white,
%fill=gray,
opacity=0.2,
shadow xshift=2pt,
shadow yshift=-2pt
}]
{\fcolorbox{black}{white}{\includegraphics[height=8cm]{picture.jpg}}};
\caption{A caption.}
\end{figure}
\end{document}
EDIT : I'm trying to do this effect :

- picture.jpg (73.33 KiB) Viewed 19563 times
However, the shadow isn't right yet. The thickness should be exactly the same at the right and below the frame, with the same offset on the lower-left and upper-right corners. How ?