Hosting pano/360 photos


#46

aaaahhh … yes … something/someone/probably me must have added that on the laptop.


#47

Test using an image uploaded to GreyArro.ws

https://greyarrows.s3-eu-west-2.amazonaws.com/original/1X/43be4cb704237df55bc24f449b80b4ae89114e49.jpg

<iframe width="600" height="400" allowfullscreen="true" style="border-style:none;" src="https://cdn.pannellum.org/2.3/pannellum.htm#panorama=https://i.imgur.com/P0i1qFm.jpg&autoLoad=true&autoRotate=-2"></iframe>

Ah bugger, seems some sort of setting (whitelist) on Amazon S3 needs to be added to allow https://cdn.pannellum.org/2.3/ to be able to access it’s assets.

Working now - Thanks @PingSpike - If you are viewing this and it is not showing you may need to clear your web browser cache.


#48

I tried to do that using the image on my server (http://www.paraglider.co.uk/Panoramas/Pano-001.jpg) and got the same result.

But, if one could access an uploaded image on GADC … that would be an awesome result!


#49

Just an uneducated thought … it only has to “read” the image file … and that’s the same message I was getting without the “www.”. Does that help you?

Should it be “www.cdn.pannellum.org/…” etc?


#50

No, it is due to the CORS setup on Amazon S3 - It is most likely set to only allow greyarro.ws to access it’s images

https://docs.aws.amazon.com/AmazonS3/latest/user-guide/add-cors-configuration.html

www is a subdomain
cdn is a subdomain

so mydomain.com is different to www.mydomain.com is different to cdn.mydomain.com


#51

Kind of realised that after I’d posted … whilst I was cooking dinner. :slight_smile:


#53

All fixed and working now. Should be able to upload image on the forum and then use the iframe code snippet to display the pano


#54

Incredibly quick work guys :rofl:

Could someone write a brief ‘how-to’ for everyone?


#55

Awesomeness!


#56

Will do.

Still needs a little work from the user (eg upload pano image from DJI Go 4 app, get the image URL then pop it in the iframe code snippet.

Was looking to see if I could create a plugin like a bbcode extension [pano]IMAGE URL[/pano] that would do all the work, but I’m not familiar with Discourse coding (ruby I think).

So I will write a concise how-to on it and maybe pin it in the Media category


#57

Thanks for your hard work!

My bit was the easy bit … the “Why don’t we display panos on GADC?” bit.


#58

Will these instructions work ? Easy to follow ?


#59

Looks brilliant!


#60

Test as per instructions …

(Edit: The MS Edge browser doesn’t give easy access to the image URL. Fine in Chrome. )


#61

Can you try this method with your original, much larger, image?
Would be interesting to see if image width limits still occur on my Android phone. If so, instructions to limit to width of 4096, or a warning that larger can cause “issues”, might need to be added?

Tho - from the DJI Go4 app … I guess they won’t be any larger,
But the warning might be relevant for people creating their 2:1 image in other ways?


#62

It will certainly break on larger images.

Good spot, will add that warning and guidance on the image being 2:1 ratio if possible.


#63

Having fun …


#64

Have you managed to get: allowfullscreen=“true” to work?


#65

Unfortunately not using the CDN version.


#66

I’m viewing these fine on my old iPad Mini 2 with Safari :+1: