Barack Obama’s former photographer has signed a book deal after gaining a large Instagram following for posts trolling Donald Trump.

Pete Souza famously took two million photos during Mr Obama's eight years in the White House, following the President and his family around the world.

Publisher Little, Brown, and Company said the book, titled Obama: An Intimate Portrait, would be a collection of 300 photographs with narratives of Mr Souza’s memories for context.

Mr Souza told The New York Times in an email that “there are pictures that certainly show him stressing in the Situation Room over major decisions, but also pictures of him interacting in fun moments with his girls".

He has also built a social media presence - with over a million followers on Instagram - for his criticism of Mr Trump through his medium of choice: photographs.

His commentary comes in the form of posts like the one below, which refers to the day the White House announced it would not make visitor logs public, as the Obama administration had.

Following Mr Trump’s travel ban on those from seven Muslim-majority countries entering the US, Mr Souza posted a photo to Instagram of Mr Obama smiling and talking to a young Muslim refugee.

Sarah Palin, former governor of Alaska and the 2008 Republican vice presidential candidate, made headlines when she went to dinner at the White House and posted a picture to her Facebook account posing in front of a painting of former First Lady Hillary Clinton.

Ms Palin was standing with musicians Kid Rock and Ted Nugent, who once called for the death of Mr Obama and Ms Clinton.