I'm interested in finding a better method for the following:
- creating a black mask over the images on all pages
- while removing (or covering with white) all the text and other elements
- but still allowing
memoirto produce its trim marks withshowtrim.
This is used for printing a glossy varnish layer over the images (where the black mask is). Some printers call this a "UV mask".
Before and after:

For this, I did:
- replace the image files with .pdf files that are black squares of the same size as the corresponding images
- make a copy of the .tex files and delete all text
- insert
\hspaceand other commands to get the\includegraphicsstay at the same position
This worked once, but it would be much better to find a less hack-ish method.
Perhaps somehow saving the position and size of the images, covering the page with a white square and placing rectangles at the position of the images? Who knows.
Can you think of a good method? Ideally something that could be then abstracted into a document class option [varnishmask=true] or similar.

\color{white}. – Nils L Mar 25 '13 at 20:36