Sites that were home to hospitals, prisons and police stations are being transformed in a bid to help tackle the affordable housing shortage.

Vacant buildings and land that formerly belonged to the public sector are being redeveloped, with Social Justice Secretary Alex Neil hailing the move as part of a "range of pioneering approaches to tackle Scotland's housing challenges".

The Scottish Government is currently supporting the £34.2 million transformation of the former Eastern General Hospital in Edinburgh into 291 new homes.

In Aberdeen, about 120 new homes are to be built on the site of the former Craiginches Prison while Falkirk Council is building 18 new council houses at an old police station in Stenhousemuir.

In the Highland Council area, homes are being built on former NHS sites in Moray and Fort William while homes are being built using former Police Scotland properties in Inverness, Caol, near Fort William, and Glencoe.

In addition, 62 houses are nearing completion on land that used to be owned by the UK Government's Department for the Environment, Food and Rural Affairs.

Mr Neil, who visited the development at the former Eastern General Hospital, said: "Housing is, and will remain, at the heart of the government's ambitions to create a fairer and more prosperous country.

"Vacant land and property which was previously in public-sector ownership - such as by NHS Scotland and Police Scotland - is being used to add to the provision of affordable housing across Scotland.

"The redevelopment of the former Eastern General Hospital site is an excellent example of what can be realised when partners share a vision of what can be achieved for the benefit of the local community."

He added: "This government has invested record funding in housing and has developed a range of pioneering approaches to tackle Scotland's housing challenges."

Councillor Cammy Day, of the City of Edinburgh Council, said the authority was delighted to be working with the Scottish Government and others to provide 291 "social and mid-market rent affordable homes" on the site of the former Eastern General Hospital.

He added: "Edinburgh has a shortage of affordable housing but we are working hard with our partners and have trebled the number of homes being built; this £34 million redevelopment is a great example of what we can deliver when we work collaboratively."