Rhonda Pasek, 50, and James Acord, 47, were charged with endangering children after they became unconscious during a traffic stop in East Liverpool.
The boy, Pasek's four-year-old son, was taken into custody by county children's services.
Authorities released the image to raise awareness of the Midwestern US state's heroin epidemic.
Officials wrote on Facebook: "We feel it necessary to show the other side of this horrible drug.