Shootings in the Big Apple rose more than 5% during the first seven months of the year, the NYPD said Tuesday — hours before Mayor Bill de Blasio pledged $9 million to combat gun violence in ­Brooklyn.

Official CompStat figures show there were 448 incidents in which at least one person was shot from Jan. 1 through July 31, NYPD brass said during a morning news conference at One ­Police Plaza.

That total represents a 5.2% increase over the same time period in 2018, when there were 426 shooting incidents.

The hike was recorded even as total major crimes have dropped 4.1% this year, led by a 12.7% decline in burglaries and a 7.1% drop in murders, the NYPD said.

Monthly figures showed 139 fewer break-ins during July 2019, compared to July 2018 — but an increase in murders, from 28 to 31, and rapes, which rose from 147 to 162.

Shootings dipped slightly for the month, from 89 to 87 — and that included the gang-related mass shooting at the annual “Old Timers Day” block party in the Brownsville section of Brooklyn, where 12 people were shot — one fatally — on July 27.

Cops suspect two gunmen opened fire and have offered a $10,000 reward for information that leads to arrests and an indictment in the incident, which one veteran investigator has called “one of the worst, most brazen shootings I’ve ever seen.”

On Tuesday evening, de Blasio — who skipped the CompStat news conference — appeared at a National Night Out Against Crime event in Brownsville, where he announced plans to pay for increased safety ­measures.

“A mass shooting, one life lost, 11 injured — we will never let that happen again in Brownsville, will we?” he said. “And we will never go back in Brownsville, only ­forward.”

The outlays will include $140,000 for new NYPD security cameras and lighting around the Brownsville Playground, the scene of the mass shooting.

The lion’s share of the cash, $5.2 million, will pay for renovation of the community center in the sprawling Brownsville Houses low-income housing project.

The spending also includes $1 million to expand a violence-disruption program in the NYPD’s 73rd Precinct and another $1 million for the city-run Brooklyn Neighborhood Health Action Center.

Law enforcement sources were skeptical that Hizzoner’s plan would stem the rising tide of gunfire.

“Shootings are going up because there’s no stop, question and frisk,” one high-ranking NYPD official said.

“The perps aren’t afraid to carry guns and cops are afraid to do their jobs. It’s hands off. They’re afraid of getting jammed up. If it’s not in plain view, they’re not going to take action.”

The official also said shootings were likely to “keep going up in the next couple of months with J’Ouvert,” the festival that precedes the annual West Indian Day Parade in Crown Heights on Labor Day weekend.

J’Ouvert has been marred by violence in recent years, with two people fatally shot in 2016 and an aide to Gov. Andrew Cuomo, Carey Gabey, killed in the crossfire between two rival gangs the previous year.

Additional reporting by Rich Calder and Dante Jean.