# How to make an inserted figure's frame gradually fade? [duplicate]

This question already has an answer here:

I have a document, whose background is, needless to say, white. Generally, I am OK with just inserting a figure like this.

\begin{figure}
\centering
\includegraphics[width=\textwidth]{sample}
\end{figure}


But now, I have a very black-background figure, who makes the regular insertion quite abrupt. Actually, the frame/edge of this figure is not important at all.

So I can afford to make the frame fade gradually to white. How can I do it?

MWE

\documentclass[a4paper]{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{mwe} % just for dummy images

\begin{document}

\begin{figure}
\centering
\includegraphics[width=\textwidth]{example-image}
\end{figure}

\end{document}


## marked as duplicate by Thomas F. Sturm, Werner, Masroor, user13907, RubenDec 20 '14 at 16:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.