I understand that this was not uncommon here in the States around the time of the Civil War.
The family genealogists are still debating whether that photo of great great granddad dressed in his Sunday best and sitting next to his wife was taken after he died.
Very common in the 1800’s to take postmortem photos. Postmortem photos are very collectible now and can run into the hundreds of dollars.
It was hard to hold still for those long exposures.
Go to youtube and do a search for “memento mori.” Lots of Victorian-era pictures of the deceased. In some cases, they used a special framework to photograph the corpses while they were standing, and painted open “eyes” on the closed lids of the bodies.
There are some pictures of live children posing with a deceased sibling. Photography was expensive back then, so in some cases this was the last chance for the family to have a picture of their loved one.
Do not look at these pictures if you are easily creeped out. Actually, don’t look at them if you have any capacity for getting creeped out at all.