The owner of a California clothing company got spanked for playing hanky-panky with a famous photograph.

Diana Amadi was ordered to pay $100,000 to shutterbug Michael Dweck over the unauthorized use of the signature shot of a nude woman from his 2004 book, “The End: Montauk, N.Y.”

The black-and-white image — a copy of which sold at auction for $30,000 in April — shows a naked beach babe running toward the waves with a surfboard under one arm.

Court papers say Amadi’s Malibu Jeans printed part of the pic on the hang tags for its $200-a-pair denim pants — after cropping out the woman’s bouncing breasts and covering the crack of her butt with a red company logo.

Manhattan federal Judge Richard Berman handed down the default judgment after Amadi and her company failed to answer Dweck’s copyright-infringement suit.

But Berman refused to award Dweck’s lawyer, Edward Greenberg, $60,000 in legal fees, saying he had failed to submit “satisfactory evidence” to justify the “considerable” bill.