I need to create a preview of an uploaded file. Problem: The file will be a 360° panorama, and i use pannellum as display library. So i installed pageres on my debian server and after uploading i just exectute this PHP line:
exec("pageres https://myserver.com/preview.html?PicCode=$Code&Width=$Width&Height=$Height' {$Width}x$Height --crop --filename '$Code' > /dev/null &");
And it definitely works GREAT! I got a perfect screenshot. Unfortunately (and like expected) it's just the message that WebGL is not supported on "this device"... :(
I searched Stackoverflow, Googled around. Unfortunately no helpful idea. So i would need a Guru (or just some1 who knows how to Google for the right solution) to help me out. Actually i need a 2-step-process for the customer (1st upload, 2nd click for creating a preview) and that's not really funny.
How could i enable pageres to render a simple 2D-canvas?
Any ideas?