Anne Hathaway says she is gaining weight, slams 'all the people who are going to fat shame me'

Anne Hathaway is gaining weight for a new role and is letting the world know.

The movie star posted a video of her exercising on her Instagram account Thursday.

“I am gaining weight for a movie role and it is going well. To all the people who are going to fat shame me in the upcoming months, it’s not me, it’s you. Peace xx,” she wrote.

The 35-year-old actress mentioned that she “wanted to set this to Queen’s ‘Fat Bottomed Girls’ but copyright said no.”

KIM KARDASHIAN SHARES FIRST FAMILY PHOTO WITH 3 KIDS

The video of Hathaway working out had been viewed more than 595,000 times as of Thursday evening.

Hathaway earlier recalled her experience at the 2013 Oscars -- when a pink Prada dress she wore made headlines -- in a March Instagram post, Us Weekly noted.

“I had to change my dress last minute and so it looked like my nipples were hard, I had full blown laryngitis and had to sing, and a bunch of corny haters were getting lots of attention from the media for being haters but you know what? It was still the best,” Hathaway wrote on Instagram March 4.

She added, “To all the nominees, I hope you have a BLAST tonight doing all that #bestlife#oscars stuff.”

Hathaway nabbed the Best Supporting Actress Oscar after starring in the 2012 film adaptation of the Broadway musical “Les Miserables.”

Fox News' Sasha Savitsky contributed to this report.