mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.15k stars 710 forks source link

how to use generate.py script in PHP project? #1198

Open alfatihart opened 6 months ago

alfatihart commented 6 months ago

I use the library in a virtual tour project using the CodeIgniter 4 framework. So how do I implement or use generate.py to convert to multiresolution format, sir?

luishcq commented 6 months ago

Hi Al-Fatih, I think that you plan to just show panoramas, and CodeIgniter helps to build your site, is that right? In this case, you will have to run generate.py beforehand, so when someone wants to see a panorama the (pano) tiles are already created and stored in some folder in the server, and pannellum will access the tiles as needed for viewing. I hope this helps,

sincerely,

Luís Henrique

Em sex., 29 de dez. de 2023 às 15:50, Al-Fatih Art @.***> escreveu:

I use the library in a virtual tour project using the CodeIgniter 4 framework. So how do I implement or use generate.py to convert to multiresolution format, sir?

— Reply to this email directly, view it on GitHub https://github.com/mpetroff/pannellum/issues/1198, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPYPLJCGRJRI3FAJV6BUDDYL4GIHAVCNFSM6AAAAABBG5GI3GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DAMZSG44DQNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- -- Luis Henrique Camargo Quiroz http://luishcq.br.tripod.com - http://www.christusrex.org/www2/cantgreg http://panoramaslh.net/

alfatihart commented 6 months ago

I built a dynamic panorama system, where the admin can add and upload equrectangular files to the system. So what is the implementation to run generate.py automatically on the server/system without needing to run it manually outside the panorama system?

mpetroff commented 5 months ago

So what is the implementation to run generate.py automatically on the server/system without needing to run it manually outside the panorama system?

You'd call the generate.py script from PHP the same way you'd call any other external executable. Just like if you were calling it manually, you'd need to provide the path to the equirectangular input image and the path to the desired output directory.