How do I free up photo storage?

I am using iCloud sotrage but I still see that I I am using 2.7 GB of device sorage for my photos & camera. I am trying to upgrade my iOS, but it says I do not have enough storage. I have only 182 MB available in my device storage, but I have 15 GB available on my iCloud. I would like to move te 2.7 GB of photos to the iCloud. Is this possible?
If you need more space for an iOS update - Apple Support

Original thread: https://forums.imore.com/threads/how-do-i-free-up-photo-storage.317827/