Taking a Good Picture of a PCB
blog.brixit.nl
blog.brixit.nl
Check out the nice pictures at https://learn-cnc.com/reverse-engineering-pcbs/ for example.
That's detailed in the article.
Indeed, I use a cheap paintbrush and a blast of air to remove dust from small things, including circuit boards, before I have to take a picture.
It's sort of anti-HDR. The author automates processing using imagemagick.
If one is on more of a budget here's a video by bigclive how he takes PCB photos on a budget. https://youtu.be/L6sAS-y21xA