is it based on a cartoon or game?
On the franchise of the same name.
Power Rangers (film)
Power Rangers (also marketed as Saban's Power Rangers) is a 2017 American superhero film based on the franchise of the same name, directed by Dean Israelite and written by John Gatins. It is the third "Power Rangers" film, and is a reboot. The film features the main characters of the "Mighty Morphin Power Rangers" television series with a new cast, starring Dacre Montgomery, Naomi Scott, RJ Cyler, Becky G, Ludi Lin, Bill Hader, Bryan Cranston, and Elizabeth Banks.

when did the power rangers movie come out 2017 who acts in the movie? Dacre Montgomery, Naomi Scott, RJ Cyler and Becky G.
wiki:4827824
Power Rangers (film) [SEP] Introduction
It was met with mixed reviews upon release, with praise for the visual effects, musical score and performances (particularly Montgomery and Cyler), but criticism for its uneven tone, product placement, divergences from its source material, lack of action and the overall lack of ambition. It was also a box-office bomb, grossing $142 million worldwide against a budget of $105 million. "Power Rangers" was intended to start off a planned film franchise with sequels to follow, but due to the film's poor box office performance, all plans were cancelled. A reboot is in development at Paramount Pictures.