I've recently seen this the following image in this question:
As I was looking for a way to create nice captions (without the "Figure:") for a beamer presentation, I wondered if it was possible to create this effect within LaTeX.
I got so far with GIMP:
I did it like this:
- add a white layer where the caption will go and set it's transparancy to 50%
- gaussian blur on the image where the caption will go 3 add the caption
Can I do this within LaTeX, too?
I have a couple of images which I would like to include in a beamer presentation like this, so it would be great if this worked.
(I've tried a google image search for this, but "latex caption" seems not to be good ... even when I filter explicit results)
My try:
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{tikz}
\begin{document}
\begin{preview}
\begin{tikzpicture}
\node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics[width=\linewidth]{foto-martin.jpg}};
\begin{scope}[x={(image.south east)},y={(image.north west)}]
\draw[white, fill=white!50!transparent] (0,0.05) rectangle (1,0.1);
\node at (0.5, 0.075) {\Huge Martin};
\end{scope}
\end{tikzpicture}
\end{preview}
\end{document}
But I don't know how to get the transparency / positioning working.
As somebody suggested imagemagick, I tried this:
width=`identify -format %w foto-martin.jpg`; convert -background '#0008' -fill white -gravity center -size ${width}x40 caption:"Martin" foto-martin.jpg +swap -gravity south -geometry +0+10 -composite out.jpg
But I can't get some padding for the text in the caption and the box arround.