This monthly periodical (1827–1929), known in later years as simply The Companion—For All the Family, was an American children’s magazine that existed for over one hundred years until it finally merged with TheAmerican Boy in 1929. The Companion was published by the Perry Mason Company (later renamed "Perry Mason & Co." after the founder died).
What I find surprising is that although the magazine was family orientated and targeted at young people, this cover shows no children. My best guess as to why this is the case is that images at that time were hand drawn and very expensive. So, magazines shared both images and content, and this image may have appeared in other publications.
A real piece of trivia is that the fiction writer Erle Stanley Gardner read this magazine as a child and took the publishers name and used it as his fictional attorney/detective, Perry Mason. Ho, Ho, Ho...