recognize a new type of panoramic photos

This commit is contained in:
tibbi 2020-06-17 10:01:30 +02:00
parent 35e92f77e9
commit 75e9093b26

View file

@ -672,7 +672,8 @@ class PhotoFragment : ViewPagerFragment() {
val imageParser = JpegImageParser().getXmpXml(ByteSourceInputStream(inputStream, mMedium.name), HashMap<String, Any>())
imageParser.contains("GPano:UsePanoramaViewer=\"True\"", true) ||
imageParser.contains("<GPano:UsePanoramaViewer>True</GPano:UsePanoramaViewer>", true) ||
imageParser.contains("GPano:FullPanoWidthPixels=")
imageParser.contains("GPano:FullPanoWidthPixels=") ||
imageParser.contains("GPano:ProjectionType>Equirectangular")
} catch (e: Exception) {
false
} catch (e: OutOfMemoryError) {