How do I zoom in on a photo?

When viewing photos in slideshow mode on a phone or in photo view on a tablet, you can pinch your fingers on the photo and drag them out to zoom in for a better view of details in the photo. This feature works on both SD and HD photos.