Several different versions of this type of memento have been posted on these boards over the last 3 months or so. They appear to be quite common. I think individual soldiers bought these for themselves or had them presented to them I don't think they were given to all soldiers. These other ones were for German soldiers.
The locations you mention are in the Austro-Hungarian Empire, and I think the soldier is wearing Austro-Hungarian headwear. The text is in German, but this was the language of the Austrian part of the Empire. I suspect that the middle portrait cut off at the top would be the Emperor, the other two would be senior officers. In one version I saw the top 3 portraits were the German Kaiser, the Emperor and the Italian king. This made them marketable to soldiers from all 3 empires. I think this version is probably solely aimed at Austro-hungarian soldiers judging by what little I can see of the uniforms that are cut off.
Only the head is unique to each picture. The rest of the picture is generic. Sometimes there is a space for the regiment to be inscribed, but that may have been cut off from this one, or it may never have had this element.
Sometimes the head of the soldier looks a little odd as it is added later to show the individual whose service is commemorated. Apart from the regiment name, this is the only personalised part of the picture. The artistry of whoever adds the head may not be up to the artistry of whoever made the original print. Can you see a difference in production method by close examination of the original ?
The dates were for later 19th century.