Taking photographs is basically legal. Publishing photos against the will of the subject is illegal in most cases.

But as indicated the legal situation does not necessarily mean that every subject has a problem with publication.