Git Product home page Git Product logo

wp-photo-sphere's Introduction

WP Photo Sphere

WP Photo Sphere is a filter that allows you to display 360×180 degree panoramas. With WP Photo Sphere, your visitors will be able to navigate through your panoramas without install any plugin.

WP Photo Sphere is based on the JavaScript library Photo Sphere Viewer.

This plugin allows you to display equirectangular panoramas, taken with a classic camera or with Photo Sphere on Android and iOS.

WP Photo Sphere is available in:

How to install it

Like any other plugin, copy the wp-photo-sphere folder to the /wp-content/plugins/ directory. Then, activate the plugin through the Plugins menu in WordPress

How to use it

Use the Add a panorama button to upload or choose a panorama to insert into your post.

Since version 3.1, it is possible to read a distant panorama located on another website thanks to its URL. To do that, do not indicate any ID number and use the url attribute. Note that this feature does not work with domains that did not enable CORS. For example: [sphere url="http://upload.wikimedia.org/wikipedia/commons/a/a4/Cascading_Milky_Way.jpg"].

The default title displayed on each WP Photo Sphere link can be changed in the options page. You can also choose to display an unique title for a specific panorama by using the title attribute. Note that the %title% tag is also available in this attribute.

By default, the dimensions are 560 x 315 pixels but you can change that in the options page (in the Settings menu).

You can also choose different dimensions for each panorama using the attributes width and height. For example: [sphere 42 width="200" height="400"] or [sphere 42 width="50%" height="300"].

A maximum width can also be given with the attribute max_width, for example: [sphere 42 width="700" max_width="80%"]. Its default value can be changed in the options page.

The navigation bar allows users to zoom, animate the panorama or view it in fullscreen. To display it, just use the navbar attribute with the value yes: [sphere 42 navbar="yes"].

You can choose to display it (or not) on all of your panoramas in the options page. If you display it on all of your panoramas and want to deactivate it on one particular panorama, use the navbar attribute with the value no.

By default, panoramas are automatically animated after 2000 milliseconds, but you can change this with the anim_after attribute. You can also deactivate the animation with the value -1. For example: [sphere 42 anim_after="5000"] or [sphere 42 anim_after="-1"].

You can set the animation speed with the anim_speed attribute. It accepts six units: revolutions per minute/second (rpm/rps), degrees per minute/second (dpm/dps) or radians per minute/second (rad per minute/second). The default speed can be set in the options page. Example: [sphere 42 anim_speed="10rpm"].

With the autoload attribute, a panorama will start automatically after the page has loaded. For example: [sphere 42 autoload] or [sphere 42 width="300" height="150" autoload].

Minimal and maximal levels of zoom can be personalized in the options page by changing the minimal and maximal fields of view. You can also use the min_fov and max_fov attributes.

License

This plugin is available under the MIT license.

wp-photo-sphere's People

Contributors

gvmelle avatar jeremyheleine avatar pedro-mendonca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-photo-sphere's Issues

Plugin only working on Chrome (desktop & mobile) and Safari (mobile)

Hi Jeremy,

I have a problem with the plugin concerning browser compatibility.
Displaying 360-degree images works just fine in Chrome & Safari, but on FireFox (Version 61.0.1 "Quantum"), Microsoft Edge or Microsoft Internet Explorer.

It just displays "loading" in those browsers after clicking on the loading-link.
I tried different approaches like autoload, same problem.
image

Image size is 10000px x 5000px, filesize 3.5 to 5.5 MB.

Is there any problem perhaps with the canvas implementation cross browser?

Thanks in advance!
Greetings, Sven

Bug: gyroscope jumpy on android and enhancement request: move picture on gyroscope

Hi,

I noticed that when the gyroscope mode is activated on android the pictures is jumpy in some place, https://wordpress.org/plugins/wp-vr-view/ for example does not have this issue.

It would also be nice to be able to move pictures in the gyroscope mode so that i that you can for example look back or up without having to move the phone 180° but still have gyroscope for smaller angles.

Thanks for the great app!

How to use in blogger / blogspot?

Hi,

Can this be converted to a standalone Javascript that can be embedded in a blogger blog? Ideally all I would need to do is copy/paste the code and change the file URL.

Thanks,

Shan

Fork of WP-Photo-Sphere using fork of mistic100's fork of Photo Sphere Viewer

Hi Mr. Heline,

I wanted to let you know that I love your plugin, but wanted the improvements mistic100 made to your Photo Sphere Viewer so I forked your plugin with a minor rename (currently working title WP Photo Sphere Smooth): https://github.com/enlewof/WP-Photo-Sphere. I plan on submitting this to the Wordpress plugin directory but plan on giving you majority of the credit since I only really changed the javascript libraries and not too much of the PHP.

Doesn't work on mobile

Works ok'ish on Mac (Safari, Chrome, Opera), but when I try to open it in Safari on my iPad (iPad Air) it crashes and reloading the page.

Also, on Windows (Chrome) it just displays a black square, no panorama. Thoughts?

Plugin not compatible with exif version 2.20

Hello,

I really like this plugin, thanks for developing it !

Photo sphere and panorama from google camera (cf pixel 3a phone) now uses exif version 2.20. When I upload it to wp photo sphere I get stretch panorama that does not contain black bars anymore. However, they were functional when I was using exif version 2.10.
Screenshot from 2019-12-18 22-31-16
Screenshot from 2019-12-18 22-31-56
PANO_20190916_162829 vr
PANO_20191201_105331 vr

See xmp metadata:
`
$ exiv2 PANO_20191201_105331.vr.jpg -Pkyct
Warning: Removing 1 characters from the beginning of the XMP packet
Warning: Ignoring XMP information encoded in the Exif data.
Exif.Image.ImageWidth Long 1 9458
Exif.Image.ImageLength Long 1 960
Exif.Image.Make Ascii 7 Google
Exif.Image.Model Ascii 9 Pixel 3a
Exif.Image.Orientation Short 1 top, left
Exif.Image.Software Ascii 7 Picasa
Exif.Image.DateTime Ascii 20 2019:12:01 10:54:11
Exif.Image.YCbCrSubSampling Short 2 2 2
Exif.Image.XMLPacket Byte 786 (Binary value suppressed)
Exif.Image.ExifTag Long 1 976
Exif.Photo.ExifVersion Undefined 4 2.20
Exif.Photo.DateTimeOriginal Ascii 20 2019:12:01 10:54:11
Exif.Photo.DateTimeDigitized Ascii 20 2019:12:01 10:54:11
Exif.Photo.LightSource Long 1 Unknown
Exif.Photo.SubSecTime Ascii 4 737
Exif.Photo.SubSecTimeOriginal Ascii 4 737
Exif.Photo.SubSecTimeDigitized Ascii 4 737
Exif.Photo.ColorSpace Short 1 sRGB
Exif.Photo.PixelXDimension Long 1 9458
Exif.Photo.PixelYDimension Long 1 960
Exif.Photo.InteroperabilityTag Long 1 1462
Exif.Iop.InteroperabilityIndex Ascii 4 R98
Exif.Iop.InteroperabilityVersion Undefined 4 1.00
Exif.Photo.ImageUniqueID Ascii 33 31c685155661ae520000000000000000
Exif.Image.GPSTag Long 1 1256
Exif.GPSInfo.GPSVersionID Byte 4 2.2.0.0
Exif.GPSInfo.GPSLatitudeRef Ascii 2 South
Exif.GPSInfo.GPSLatitude Rational 3 25deg 41' 30.390"
Exif.GPSInfo.GPSLongitudeRef Ascii 2 West
Exif.GPSInfo.GPSLongitude Rational 3 54deg 26' 16.810"
Exif.GPSInfo.GPSAltitudeRef Byte 1 Above sea level
Exif.GPSInfo.GPSAltitude Rational 1 124.0 m
Exif.GPSInfo.GPSTimeStamp Rational 3 13:52:28
Exif.GPSInfo.GPSDateStamp Ascii 11 2019:12:01
Exif.Thumbnail.Compression Short 1 JPEG (old-style)
Exif.Thumbnail.XResolution Rational 1 72
Exif.Thumbnail.YResolution Rational 1 72
Exif.Thumbnail.ResolutionUnit Short 1 inch
Exif.Thumbnail.JPEGInterchangeFormat Long 1 1586
Exif.Thumbnail.JPEGInterchangeFormatLength Long 1 1246
Xmp.GPano.CroppedAreaLeftPixels XmpText 1 0
Xmp.GPano.CroppedAreaTopPixels XmpText 4 1694
Xmp.GPano.CroppedAreaImageWidthPixels XmpText 4 9458
Xmp.GPano.CroppedAreaImageHeightPixels XmpText 3 960
Xmp.GPano.FullPanoWidthPixels XmpText 4 9458
Xmp.GPano.FullPanoHeightPixels XmpText 4 4729
Xmp.GPano.InitialViewHeadingDegrees XmpText 3 180
Xmp.GPano.InitialViewPitchDegrees XmpText 1 0
Xmp.GPano.InitialViewRollDegrees XmpText 1 0
Xmp.GPano.ProjectionType XmpText 15 equirectangular
Xmp.GImage.Mime XmpText 10 image/jpeg
Xmp.xmpNote.HasExtendedXMP XmpText 32 723BC69C24363A16A496F102D07BA345
PANO_20191201_105331.vr.jpg: (No IPTC data found in the file)

$ exiv2 PANO_20190916_162829.vr.jpg -Pkyct
Exif.Image.ImageWidth Long 1 9216
Exif.Image.ImageLength Long 1 995
Exif.Image.Make Ascii 7 Google
Exif.Image.Model Ascii 9 Pixel 3a
Exif.Image.Orientation Short 1 top, left
Exif.Image.XResolution Rational 1 72
Exif.Image.YResolution Rational 1 72
Exif.Image.ResolutionUnit Short 1 inch
Exif.Image.DateTime Ascii 20 2019:09:16 16:29:00
Exif.Image.ExifTag Long 1 200
Exif.Photo.ExifVersion Undefined 4 2.10
Exif.Photo.DateTimeOriginal Ascii 20 2019:09:16 16:29:00
Exif.Photo.DateTimeDigitized Ascii 20 2019:09:16 16:29:00
Exif.Photo.LightSource Long 1 Unknown
Exif.Photo.FlashpixVersion Undefined 4 1.00
Exif.Photo.ColorSpace Short 1 Uncalibrated
Exif.Image.GPSTag Long 1 318
Exif.GPSInfo.GPSLatitudeRef Ascii 2 South
Exif.GPSInfo.GPSLatitude Rational 3 16deg 5' 12.490"
Exif.GPSInfo.GPSLongitudeRef Ascii 2 West
Exif.GPSInfo.GPSLongitude Rational 3 69deg 7' 45.440"
Exif.GPSInfo.GPSAltitude Rational 1 3867.7 m
Exif.GPSInfo.GPSTimeStamp Rational 3 21:25:05
Exif.GPSInfo.GPSDateStamp Ascii 11 2019:09:16
Xmp.GPano.CroppedAreaLeftPixels XmpText 1 0
Xmp.GPano.CroppedAreaTopPixels XmpText 4 1815
Xmp.GPano.CroppedAreaImageWidthPixels XmpText 4 9216
Xmp.GPano.CroppedAreaImageHeightPixels XmpText 3 995
Xmp.GPano.FullPanoWidthPixels XmpText 4 9216
Xmp.GPano.FullPanoHeightPixels XmpText 4 4608
Xmp.GPano.InitialViewHeadingDegrees XmpText 3 180
Xmp.GPano.InitialViewPitchDegrees XmpText 1 0
Xmp.GPano.InitialViewRollDegrees XmpText 1 0
Xmp.GPano.ProjectionType XmpText 15 equirectangular
Xmp.GImage.Mime XmpText 10 image/jpeg
Xmp.xmpNote.HasExtendedXMP XmpText 32 c389183a01ec2fb4460b34924473ac24
PANO_20190916_162829.vr.jpg: (No IPTC data found in the file)
`

Is it possible to get a workaround before this new version is supported ?

Cheers

Spheres on Internet explorer have lower resolution

Hi,

don't know for sure if it may be some setting, but at least on "stock" MS internet explorers the plugin brings low pic quality. Especially along edges of objects raw steps become visible, while a Chrome on the same machine brings the same sphere in perfect quality. This applies for both preview and full window modes. Tested this on Win 7, 8 and 10, with identical results.

Otherwise a great plugin, brought the first real use case for my 360 deg cam :)

With best regards

Ralph.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.