There is still an important difference between giving information to the police for an investigation and sharing information publicly. Not at all the same thing.
But you would expect a mugshot to go public (at least in some American states) and the preparatory ultimately known to the public through records as a felon. To rat someone out is to dox them.