Panoramas are more and more popular no matter whether produced with tripod and professional cameras or by mobile apps. Describing XMP-tags have been standardized and web services (Google Photos, FB) automatically detect and display panoramas appropriately. In Eye of Gnome, a spherical projection would be smarter and more comfortable than displaying a panorama photo as a long horizontal strip.
This is a proof of concept that would not have been possible without the help of the Photo Sphere Viewer javascript library by Jérémy Heleine and Damien Sorel. Once GTK scene graph kit is more commonly available and easy to use, a native implementation could be realized or even included into Eye of Gnome.
-
A recent distribution with Eye of Gnome 3+, Python3, Gtk+3, WebKit2 (tested on Ubuntu 16.10)
-
GObject bindings to Exiv2 are likely already installed as dependency of other softwares, if not do
sudo apt install gir1.2-gexiv2-0.10
-
Copy the folder
eog_panorama
into~/.local/share/eog/plugins/
-
Open Eye of Gnome and activate the plugin in Edit → Preferences → Plugins
While browsing images, panorama photos are automatically detected by their Photo Sphere metadata.
If a panorama photo is not displayed as panorama, ensure that it has the required metadata:
-
Open Image → Properties → Details
-
In the "XMP other" section it should have
GPano:UsePanoramaViewer = True
and other GPano metadata.
Usually such metadata is added to photos taken by mobile phones in panorama mode or photos stitched with Hugin.
Note: Due to limitations of using a WebView, large panorama images can cause CPU load during loading and take several hundred MB memory.
GPL v3.0
Copyright (C) 2017 - Andreas Eisenbarth