New Jersey cops arrested four people on Wednesday who were allegedly running a porn company out of their home — while a 7-year-old child was present, prosecutors said.

The group not only filmed in front of the youngster, but also took sexually explicit photos and videos of them as well, according to the Somerset County Prosecutor’s Office.

Their arrests were made following a five-month investigation.

“In January of 2019, the Prosecutor’s Office received a referral from the New Jersey Division of Child Protection and Permanency reporting that a 7-year old child was residing in a home on Coburn Lane in Franklin Township, N.J.,” the prosecutor’s office said in a statement.

Marina E. Volz, 30; Ashley D. Romero, 26; Sean F. Allen, 51; and Dulcinea Gnecco, 19, were all living at the home at the time. Volz — formerly known as Matthew Volz before transitioning to become a woman — was allegedly “creating pornography” with his roommates.

“On January 28 … a search warrant was executed at the residence and it was discovered that the child was in fact residing in the home where a pornography production company was being operated, exposing the child to sexually-explicit matter,” prosecutors said. “Electronic items, including cell phones and computers were seized for forensic examination … During the examination and analysis of the electronic devices, several sexually-explicit photos and videos of the 7-year old victim were located.”

As a result, cops removed the child from the home and placed them in the care of the Division of Child Protection and Permanency. Prosecutors said they didn’t want to charge Volz and the others until after the exam results and analysis were fully complete.

The new evidence led to all four being charged Wednesday with endangering the welfare of a child and aggravated sexual assault for Voz, Allen and Romero. Prosecutors have not said how the child is connected to them.