The New York Times Company posted a net loss for the second consecutive quarter, in part because of severance costs related to the closing of the company’s editing and prepress operations in Paris.

The company had strong growth in digital subscriptions, it said on Thursday, but digital advertising revenue, which has been a bright spot in the past, declined.

In its earnings release, the company said that it had added 51,000 net digital-only subscriptions in the quarter for its news products and 16,000 net crossword product subscriptions. The Times now has about 1.2 million digital-only subscriptions for its news products and more than 1.4 million total digital-only subscriptions, an increase of more than 25 percent compared with the same time a year ago.

During an earnings call with investors, Mark Thompson, the company’s chief executive, struck an optimistic tone. “It was an excellent quarter for audience growth, engagement and our digital subscription business,” he said, adding that The Times drew 126 million unique users in June, and that engagement for nonsubscribers increased 20 percent year-over-year.