A post shared by The White House (@whitehouse) on Jul 3, 2019 at 4:25pm PDT

US Border Patrol agents captured this startling X-ray image of 33 illegal migrants — including 12 children and a pregnant woman — massed inside a stifling truck along the Arizona border.

The 37-year-old Mexican driver of the 2002 Freightliner tractor-trailer — with a refrigeration unit that was turned off — was charged with felony human-smuggling violations in a federal complaint, officials said.

Agents at a checkpoint in Nogales, Ariz., told the driver to pull up to a secondary inspection area Tuesday night for “further immigration-related questioning,” according to a release from Customs and Border Protection.

“A search of the trailer filled with produce from Mexico led agents to discover 33 foreign nationals from Mexico and El Salvador hiding inside,” CBP said.

“The group concealed inside the trailer included 12 juveniles in age from 3 to 17, a pregnant female and a convicted felon,” CBP added.

The scorching temperature inside the truck had climbed to almost 100 degrees, “causing imminent danger to the people locked inside with no means of egress.”

The White House posted several photographs from the scene, including the disturbing X-ray image, on social media.

“THANK YOU to our heroic Border Patrol agents, whose vigilance caught this smuggler and potentially saved lives!” the White House said in a message accompanying the posts.

In other photographs, the migrants were seen sitting near the truck, surrounded by several Border Patrol agents, one of whom was helping a toddler with boxes of provisions nearby.

President Trump has dismissed Democrats who exposed squalid conditions at detention centers for illegal immigrants, including a lack of toiletries, showers and space.

“Our Border Patrol people are not hospital workers, doctors or nurses. The Democrats bad Immigration Laws, which could be easily fixed, are the problem. Great job by Border Patrol, above and beyond,” Trump tweeted, a day after the Department of Homeland Security’s inspector general criticized the conditions at the facilities.

“Many of these illegal aliens are living far better now than where they came from, and in far safer condition,” the president tweeted.