He had been studying in Perth for three months when he and a group of friends decided to take the five-hour road trip down to The Gap.

His friends admitted the young man was "mucking around" when he allegedly slipped, plunging to his death.

Sahil Khenchi has now released the photo of his friend in his final moments, hoping the harrowing picture will serve as a warning to future visitors.

"It was like his hobby to take pictures in each and every moment," Sahil told Channel 7 Perth, who obtained the picture.

"It's like a warning for others," he added.

Moments before Ankit’s death. Picture: Seven News

A witness said he hit several rocks before landing on a rock ledge at the base of the cliff.

Moments later a wave swept through the base and took the man's body out into the ocean.

"I had to stop his friends from jumping in after him and going over the edge," a witness told PerthNow.

District Superintendent for the Great Southern Dominic Wood reminded visitors to heed safety advice when visiting The Gap.

"In any circumstances for someone to lose their life … is just horrible," he said shortly after Ankit's death. "It's horrible for the family, it's horrible for the first responders, it's horrible for the people who witnessed this event.

"It is a dangerous area but if you take precautions and stay between the bounds, then these things won't happen."