Can You Publish Photos Without Consent?

Is it illegal to post photos without consent?

.