How can I get latitude and longitude from a GeoTIFF file?

Maybe this post explains it for you: