Old iphone4 and battery died,how do i recover my photos?

I have an iphone4 which could dated back to 2011. Too old and the battery does work. I have lots of photos inside, any way to save my photos?
Welcome to iMore! Are they possibly backed up to iCloud. Visit www.icloud.com using a computer, log in using your Apple ID and password, and see if they're there. You can also try connecting your iPhone to a computer running iTunes to extract the photos but there's no guarantee that will work at this point. As a last resort, take your iPhone to a repair shop and have them replace the battery.

Original thread: https://forums.imore.com/threads/old-iphone4-and-battery-died%EF%BC%8Chow-do-i-recover-my-photos.376036/