canada
The sharer would have a defence if the image is shared only with any other lawful consenting participants depicted in or having made the image.
Definition of child pornography
I will assume based on your tags that "inappropriate photos" means "child pornography." Mere nudity is not child pornography.
In Canada, child pornography is defined at s. 163.1 of the Criminal Code. In visual form, child pornography is:
a photographic, film, video or other visual representation, whether or not it was made by electronic or mechanical means,
(i) that shows a person who is or is depicted as being under the age of eighteen years and is engaged in or is depicted as engaged in explicit sexual activity, or
(ii) the dominant characteristic of which is the depiction, for a sexual purpose, of a sexual organ or the anal region of a person under the age of eighteen years.
Offence of distributing child pornography
It is an offence to share child pornography (s. 163.1(3)):
Every person who transmits, makes available, distributes, sells, advertises, imports, exports or possesses for the purpose of transmission, making available, distribution, sale, advertising or exportation any child pornography is guilty of an indictable offence ...
The private-use of consensual recordings of lawful sexual activity
The Supreme Court of Canada has read-in an exception for private use, where the activity recorded is lawful, and all the participants consent to the recording (R. v. Sharpe, 2001 SCC 2):
[A private-recordings exception] protect[s] the recording of lawful sexual activity, provided certain conditions were met. The person possessing the recording must have personally recorded or participated in the sexual activity in question. That activity must not be unlawful, thus ensuring the consent of all parties, and precluding the exploitation or abuse of children. All parties must also have consented to the creation of the record. The recording must be kept in strict privacy by the person in possession, and intended exclusively for private use by the creator and the persons depicted therein. Thus, for example, a teenage couple would not fall within the law’s purview for creating and keeping sexually explicit pictures featuring each other alone, or together engaged in lawful sexual activity, provided these pictures were created together and shared only with one another.