It is loosely based on the novel of the same name by E. B. White. It combines live action and computer animation. The screenplay was written by M. Night Shyamalan and Greg Brooker.
https://en.wikipedia.org/wiki/M._Night_Shyamalan#Filmography
According to White, the idea for this story came while he was sleeping on the train. The reason for the book's abrupt ending was White's hypochondria. He thought he was going to die soon, so he ended the book in order to get it published before his death. White lived another 40 years after the book's publication. s
Someone needs to make a Shyamalan cut of this trailer