No, airliners do not fly low enough that those can be photos.
On the left-hand one the distance between the top of the tower and the horizon is much less than the height of the tower, meaning that if this is a photograph, it would be taken from a height of about 500 feet.
The right-hand one apparently shows the top of the tower above the horizon, meaning that the vantage point would be even lower.
Flights landing at London City Airport's runway 09 pass quite close to the Palace of Westminster at low altitudes -- see for example AZ216 on Flightradar24 today -- but not that low. That would put them lower than several of the skyscrapers in the City which they need to pass over to get to the runway.
The charted approaches to LCY specify staying at an altitude of 2000 feet (which is more than 6 times the height of the clock tower) until just west of the Isle of Dogs. Some approaches to runways 27R/27L at Heathrow pass close to Westminster too, but at an altitude of 3000 feet.
More generally, the Palace of Westminster is in Restricted Area R157 where flights below 1400 feet without special advance permission are forbidden.
Both images look like digital artwork rather than photos to me.