![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
Hi there, I am looking for a PHP script that will take an Equatorial image (360deg X 180deg) and convert it into and Image Pyramid structure sutable for using with krPano viewer.
Has any one seen or tried this? Does it exist?
Thanks.
Offline
Why does it have to be a PHP script?
Offline
No does not have to be php but I am looking for a server based solutions that will run on a *nix based system.
Offline
OK Some progress.
<?
$path = "/test/test.jpg";
//$preview = str_replace("http://dev.circularworlds.com/",$_DOCUMENT_ROOT ,$path);
$preview = $_SERVER['DOCUMENT_ROOT'] .$path;
//$preview = "http://dev.circularworlds.com/" .$path;
$thisfile = str_replace(".jpg","_b.jpg",$preview);
echo "Shell exec is run by " .exec('whoami') . "<br>";
//we check if the cubes are not already created, if not then, call krtransform
if (!file_exists($thisfile)) {
echo "Workign on ". $preview. "<br>";
$output = array();
$return_var = 0;
if(file_exists($_SERVER['DOCUMENT_ROOT']."/test/krpanotools/ktransform")){
$cmd = $_SERVER['DOCUMENT_ROOT']."/test/krpanotools/ktransform cube6 $preview $preview -jpegoptimize";
echo $cmd. "<br>";
exec($cmd, $output, $return_var);
}else{
echo "ktransform not found <br> ";
}
print_r($output);
}else{
echo "File already there";
}
?>But sadly this is not workign from me.
If I try to run ktransform from the comand line I get the error "/lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ...."
If I run /lib/libc.so.6 it shows that my server runs version 2.3.6 :-(
I guess since krpano does not build a version of krtransform for older versions of GLIBC I am out of luck... at least on this server setup (Media Temple GS)
Can any one offer any advise?
Offline
SUCCESS! Figured since I could not update the GLIBC on the server I was testing on I would try older versions of PanoTools.
Had to try a few befor I found one that worked..
ktransform 1.0.1 (krpano.com - krpanotools 1.0.6)
For actual production I am sure I will have more control of server side, but Figured I would post this here incase any others are looking for a simmilar solution!
Any other ideas or solutions more than welcome!!
Offline
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
