Two top executives are leaving DreamWorks Animation SKG and 500 employees - or nearly a quarter of its workforce - are being laid off after yet another poor box office showing, the studio disclosed in a press release and regulatory filing on Thursday.

There had been media reports of impending layoffs at the studio, but the exact figure was unclear. The company employs about 2,200 workers in Glendale and Redwood City, with layoffs taking place across all locations and divisions.

The downsizing will force the Glendale studio to take a pretax restructuring charge of $290 million primarily in the quarter ended Dec. 31, with the remainder spread out over this year and next. About $60 million of the charge is related to severance, benefits and other obligations to employees.

It also expects a $55 million write-down for the fourth quarter related to “Penguins of Madagascar,” its latest film, and “Peabody and Sherman,” released last spring.

Additionally, the studio plans to cut its film output from three to two films a year, one original and one sequel. The studio’s next film, “Home,” is to be released March 27.

Thursday's announcement included the unexpected departures of Chief Operating Officer Mark Zoradi and Chief Marketing Officer Dawn Taubin by March 31. Zoradi only joined DreamWorks in July, while Taubin became marketing head in August 2013.

The filing also said that the company’s vice chairman, Lewis Coleman, would be stepping down from its board by Jan. 30.

Chief Executive Jeffrey Katzenberg said the plan will deliver better box office results and growing profitability for all business divisions.

“The number one priority for DreamWorks Animation’s core film business is to deliver consistent creative and financial success,” Katzenberg said in a prepared statement.

That financial success, however, has been elusive for the studio, which lost more than $46 million in the first three quarters of last year. That has resulted in the share price falling nearly 40 percent from a year ago.

The studio had a breakout hit with “How to Train Your Dragon 2,” which was released in June and has generated more than $600 million in worldwide ticket sales. But over the last two years the studio has taken write downs on three films – $57 million on “Mr. Peabody and Sherman,” $13.5 million on the summer 2013 release “Turbo” and $87 million on the holiday 2012 release, “Rise of the Guardians.”

Early this month, Katzenberg made other management changes, naming Bonnie Arnold and Mireille Soria as co-presidents of feature animation. They are replacing Bill Damaschke who stepped down after serving as chief creative officer since 2011.

The layoffs, charges and management changes were disclosed after markets closed on Thursday.

Shares closed up 63 cents, or 3 percent, to $21.31 on the Nasdaq. They were up 69 cents in after-hours trading.