Question: how to transfer pictures from locked iphone?
Answer: If you've enabled Find My iPhone feature in the locked iPhone, you can use iCloud to remove forgotten iPhone passcode lock. After that, set up the iPhone and choose Restore from iCloud backup. This way you could restore photos from iPhone that's locked by password.