A police officer who allegedly dumped his emaciated dog in a trash bag in a Philadelphia park has been arrested.

Michael Long, an 11-year veteran of the Philadelphia Police Department, is accused of leaving the pit bull for dead in Philadelphia's Wissahickon Valley Park last November. Long, 33, surrendered to police on Thursday.

A dog walker alerted the SPCA after seeing the pup's nose sticking out from a trash bag. Photos taken shortly after she was found show her cowering on the ground, with her rib bones visible through her fur.

The SPCA took in the 3-year-old dog, who has been renamed Cranberry.

They learned she had a microchip, which they say led them to Long.

Following months of treatment, Cranberry was adopted, the SPCA told InsideEdition.com.

"Cranberry is doing wonderfully now," spokesperson Gillian Kocher said. "She is in her new forever home, has recovered completely physically and has the same sweet and loving personality that she has always had."

She was adopted by a man who followed her story on the news, Kocher said.