I am using LaTeX/Beamer to create some slides I have made the background black and the font white using
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{normal text}{fg=white,bg=black}
However, when I include an image using \includegraphics I see a little white shadow around the figure as in the following screenshot:
I tried to use trim=4 4 4 4, clip in the options of \includegraphics, but it didn't help. I have checked the image and I don't see any white border around it; if there were one, it should be removed with trim and clip.
This is how to reproduce the problem:
\documentclass[mathserif,xcolor={dvipsnames, svgnames},9.5pt,aspectratio=169]{beamer}
\setbeamertemplate{footline}[frame number]{}
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{normal text}{fg=white,bg=black}
\setbeamersize{text margin left = 1em}
\setbeamersize{text margin right = 1em}
\setbeamertemplate{itemize item}{--}
\setbeamercolor{itemize item}{fg=mycol}
\setbeamercolor{enumerate item}{fg=mycol}
\setbeamerfont{enumerate item}{series=\bfseries}
\setbeamertemplate{itemize subitem}{\checkmark}
\setbeamercolor{itemize subitem}{fg=mycol}
\setbeamerfont{enumerate item}{series=\bfseries}
\setbeamercolor{enumerate subitem}{fg mycol}
\setbeamercolor{frametitle}{fg=mycol}
\setbeamerfont{frametitle}{series=\bfseries}
\begin{document}
\begin{frame}
\centering
\includegraphics[width=0.7\textwidth, page=1]{hand2}
\end{frame}
\end{document}
File hand2 is a PDF that can be downloaded from here.

fboxaround the figure -- https://tex.stackexchange.com/questions/400746/border-around-image – js bibra Dec 03 '20 at 00:54