forum.coppermine-gallery.net

Support => cpg1.6 plugins => cpg1.6.x Support => cpg1.6 plugin contributions => Topic started by: Αndré on January 11, 2019, 08:37:07 pm

Title: Panorama Viewer for cpg1.6.x
Post by: Αndré on January 11, 2019, 08:37:07 pm
This is the cpg1.6.x and PHP7 compatible version of the Panorama Viewer plugin.

This is a simple panorama viewer. It uses HTML to prevent large images breaking your website design. If you upload an image with the extension '_360pano.jpg', the script will loop the image. <- the string is configurable since plugin version 1.4

It's tested only with my preferred settings yet. Please report any messy behavior.



Version 1.4 adds a configuration interface:

Panorama detection (+ corresponding Value)
  • By picture width - The panorama viewer code is just applied if the picture's width exceeds a fixed pixel value
  • By picture ratio - The panorama viewer code is just applied if the picture's width is at least x times the picture's height
  • By file name - The panorama viewer code is just applied if the picture's file name contains a fixed string
  • Always - The panorama viewer code will be applied to all pictures
360° panorama file name string - If the picture's file name contains that string, it will always be looped (ignores above settings)