Peter Jackson was discharged from hospital today to continue his recovery at home, following his operation for a perforated stomach ulcer.
Jackson was admitted to Wellington Hospital on January 26 with acute stomach pains.
A spokeswoman said the surgery had gone well and Jackson was expected to make a full recovery.
The Hobbit director wanted to express his thanks to the doctors and nursing staff at Wellington Hospital for their expert care "and to all those members of the public who sent their warm wishes," his spokeswoman said.
Any delays to filming The Hobbit were expected to be minimal.
In 2005, Sir Peter revealed he had lost over 31kg in 10 months, though other reports put the figure at up to 49kg, which he attributed to intense hard work and a change of diet.
A perforated ulcer is a when an ulcer in the stomach burns completely through the stomach lining, leaving a hole for stomach acid and foods to enter the abdominal cavity.
Interestingly, The Hobbit author JRR Tolkien suffered from a perforated ulcer before dying in 1973.