If all images you include with
\includegraphics are to be censored, then saying
will use the real bounding box for the images, but will print instead a box with the file name.
If not all the images are to be censored, I suggest to use for those a different command:
%\let\cincludegraphics\includegraphics % Uncomment for "private version"
\cincludegraphics just like
\includegraphics. For the nonpublic version it's sufficient to uncomment the following line.
This doesn't support
\cincludegraphics*, but for that it's equivalent to specify the
If you also want to hide the file name, you can add (after having loaded
In case you prefer to replace the file name with a word, you can say instead