Display of Panorama photos

Use this forum to express your thoughts and opinions in general.
Post Reply
nerdykit

Display of Panorama photos

Post by nerdykit »

After a recent trip I've ended up with a nice panorama shot (as a jpg) that the excellent freeware Hugin software created for me from three images.

Now I'd like to display that along with other images in the same album that are more standard 2 x 3 format but I can't really figure out a good way to do that or even if it's possible to do with NPG.

So my jpg panorama image is in about 5 to 1 aspect ratio. If anyone has figured out how best to show off panoramas within NPG, I'd appreciate hearing about it.

Thanks

NK
stephenbillard
Site Admin
Posts: 85
Joined: Tue Aug 14, 2018 6:33 pm
Location: Huntington Beach, CA, USA

Re: Display of Panorama photos

Post by stephenbillard »

I did a quick look and found a list of possibilities. https://www.jqueryscript.net/tags.php?/Panorama/

Since they are all jquery based I presume that they could be adapted to netPhotoGraphics without too much trouble. Hopefully they work with jQuery v3. I have not tried any of them.

https://www.jqueryscript.net/other/360- ... -Pano.html has sample coding that looks pretty simple. Maybe you can give it a try and see if it works. (If not maybe one of the other ones.)

Anyway, if you find one that does what you want, I am sure we can make it into a plugin. Do some research and put together a set of requirements for how things should display. Maybe non panorama will work just fine with these viewers. If not how should we deal with the differences? that sort of thing.

Then create a ticket with what you discover.
-Stephen
Mates-K1
Posts: 26
Joined: Tue Aug 28, 2018 9:43 pm
Location: Ústí nad Orlicí, Czech Republic

Re: Display of Panorama photos

Post by Mates-K1 »

Panorama plugin would be great. :idea:
nerdykit
Posts: 1
Joined: Sat Apr 25, 2020 12:57 am

Re: Display of Panorama photos

Post by nerdykit »

The panorama viewer I have been able to use most easily is this one...

Simple-jQuery-Panorama-Viewer-with-Touch-Swipe-Support (board won't let me enter a link to it but it's from the jquery list posted above)

I can set up a standard html page pulling in the components and displaying my pano but I can't see any good way to incorporate it in with conventional images.

Yes a plugin would be great but I have no idea how to go about building one. I don't even know how to take my standalone page that displays my panorama and get that "inserted" into an existing album of conventional images.

Any guidance will be appreciated.

NK
stephenbillard
Site Admin
Posts: 85
Joined: Tue Aug 14, 2018 6:33 pm
Location: Huntington Beach, CA, USA

Re: Display of Panorama photos

Post by stephenbillard »

Here are some thoughts we might pursue. (I'm assuming that when you display the panorama it is contained within the boundaries of a "normal" image but allows panning.)

A plugin could attach to the "standard_image_htm" and "custom_image_html" filters. The processing for these filters would check the size (width) of the image and if it was cropped. If not cropped and the aspect ratio of the image was larger on the width size than the container it would insert the panorama JS.

Can you share the code you use to display the panorama? Then maybe I could knock together a plugin.
-Stephen
Post Reply