Login your apple id in computer or laptop through the web browser. Connect your iPhone on the internet.
Go to your computer also there is an option Backup your photos. Start backup your photos from iPhone.
If your iPhone is connected with wifi it will automatically upload all the photos from iPhone to iCloud. Through this way, you can save or transfer all your iPhone pictures into icloud.