Ousted director Julie Taymor netted a sizable share of the profits from “Spider-Man: Turn Off the Dark” by settling her suit against the producers of the blockbuster Broadway musical yesterday, The Post has learned.

A source close to the Great White Way’s most expensive production said Taymor walked away with a “big piece” of the show, which currently is just barely breaking even — but could turn into a cash cow once it gets franchised across the globe.

A statement announcing an end to the venomous legal battle was short on specifics, and lawyers for both sides didn’t return requests for comment.

But in a prepared — and telling — remark, Tony-winner Taymor said, “I’m pleased to have reached an agreement, and hope for the continued success of ‘Spider-Man,’ both on Broadway and beyond.”

Producers Michael Cohl and Jeremiah Harris likewise said they were “happy to put all this behind us.”

”We are now looking forward to spreading ‘Spider-Man: Turn Off The Dark’ in new and exciting ways around the world,” they added.

Playwright Glen Berger, who was also named as a defendant in the case, said, “I am very glad the parties have put the claims behind them. I look forward to seeing fruitful work from all those involved.”

Taymor sued for more than $1 million after she was fired following the $75 million show’s disastrous previews.