Comments (2)
Indeed! I just noticed that GPano:UsePanoramaViewer
is not required, so it may be missing. GPano:ProjectionType
is required and it is currently only used with the value equirectangular
. By checking for the presence (not None
) we can assume the photo is intended to be displayed as panorama. But we don't know if ever more values will be added. Since PhotoSphere.js supports only equirectangular projection, I'd rather check for that exact value.
def use_panorama_viewer(self, filepath):
metadata = GExiv2.Metadata(filepath)
return metadata.get_tag_string('Xmp.GPano.ProjectionType') == 'equirectangular' \
and metadata.get_tag_string('Xmp.GPano.UsePanoramaViewer') != 'False'
Does this make sense?
from eog_panorama.
Yes, that's a better solution than mine. Mostly because if the image is meant to be viewed on a different kind of projection, it would look very weird. About the GPano.UsePanoramaViewer: I haven't seen any image with that property set as "False", but I guess is better to have that just in case.
Thank you for the quick reply!
from eog_panorama.
Related Issues (16)
- Panoramas blurry on hidpi screen HOT 1
- Plugin isn't working on archlinux HOT 7
- segfault under wayland HOT 1
- EoG crashes when moving from a panorama picture to the next. HOT 1
- allow-file-access-from-file-urls
- some keyboard shortcuts not working
- Add gir1.2-webkit2-4.0 as a dependency
- Allow to zoom in further
- Choose better initial view for small angle panoramas
- Support GPano angle parameters for initial view
- Drag&dropping an image should open it in eog HOT 3
- Out of sync when selecting another image before panorama loaded HOT 2
- Script Error :0:0 HOT 17
- Install fails HOT 4
- Exiv2 fails to read metadata on images with duplicate tags HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eog_panorama.