NYPD Commissioner Bill Bratton ripped Quentin Tarantino on Monday, saying the “Inglourious Basterds” director disgraced himself by giving an anti-police speech just days after the city’s latest cop killing.

“Shame on him, particularly at this time we are grieving for a New York City police officer,” Bratton told radio host John Gambling on AM 970.

“There are no words to describe the contempt I have for him and his comments at this particular time.”

On Saturday, Tarantino joined an anti-cop rally in Washington Square Park, where he riled up the crowd from a podium bearing the words “RISE UP! STOP POLICE TERROR!”

The director — whose 1992 film, “Reservoir Dogs,” features an infamous scene in which a cop is tortured, mutilated and killed — said he wasn’t afraid to call cops “murderers.”

A Tarantino rep didn’t return a call for comment Monday.

Bratton also took a swipe at the head of the NYPD sergeants union, Ed Mullins, who has labeled some of the top cop’s policies “lunacy” and “political pandering.”

“Shame on Sergeant Mullins and his hyperbole and sound bites,” Bratton said. “If there’s a lunatic, it’s certainly not me.”

Bratton also referred to accused cop-killer Tyrone Howard, whose rap sheet lists 28 arrests starting at age 13, as “somebody who has shown no propensity to change his ways.”

“I’m in support of some of the deinstitutionalization that’s going on, but only if there are systems in place to receive them,” Bratton said.

Howard is charged with first-degree murder in Officer Randolph Holder’s Tuesday-night slaying, the fourth fatal shooting of a city cop in less than a year.

The NYPD said Monday that it had linked a .40-caliber Glock pistol fished out of the Harlem River Sunday to the slaying.

Sources said that prosecutors were set to begin presenting a case to a grand jury and that the evidence would include Howard’s backpack, which allegedly contained bullets.

In other developments:

The NYPD diver who found the gun, Detective John Mortimer of the Scuba Team, said that, even with a light, he had only about one foot of visibility in the water. “I actually saw it out of the corner of my eye,” he recalled. “I notified another officer, ‘Hey, I got it here,’ and we collected it and brought it up.”

A man whose bicycle was allegedly stolen by Howard before Holder’s shooting was revealed to be an ex-con wanted for violating parole.

Manhattan US Attorney Preet Bharara said Holder had recently met with one of his prosecutors for a case involving a gunman whom the cop had chased down and busted. “He was sharp. He had a great memory. He was a consummate professional,” Bharara said at a Police Athletic League luncheon, recalling that Holder “took a moment to lean over [and] make sure the suspect would be OK.”

State lawmakers said they would propose a law requiring criminals assigned to a “diversion” program to wear tracking monitors. After a drug bust, Howard had been allowed to go to rehab under the program instead of serve prison time.

FBI Director James Comey told the International Association of Chiefs of Police conference in Chicago that a rise in violent crime was partly due to a “Ferguson effect,” with cops pulling back in the face of increased criticism and scrutiny.

Community members, city dignitaries and cops held vigils Monday night outside more than half of the city’s precinct stations in support of the NYPD.

Additional reporting by Shawn Cohen, Amber Sutherland, Carl Campanile, Bob Fredericks and Dana Sauchelli