[NTG-context] checking whether file is landscape or portrait