Publicly posting or showing sexually explicit images of someone you don’t like without their consent in order to hurt their reputation or shame/humiliate them is revenge porn. Most of the time the person doing the posting is a former lover, but it’s not exclusive to former lovers. It can also be done by schoolmates (like bullies for example), coworkers, family members, political rivals, etc.