iOS 11 introduced support for modern HEIF and HEVC codecs developed by the Moving Picture Experts Group (not Apple's proprietary formats) that keep high-resolution photos and videos taken with iPhone and iPad from eating up all your available storage. This post tells you more about it.
How and when to choose between HEIF/HEVC & JPEG/H.264 media formats
