Sie sind nicht angemeldet.

1

Dienstag, 24. März 2015, 18:12

automate virtual tour creation from php using different type of image

Hi,
As I said in the subject I'm trying to automate the process of creation of a virtual tour using different type of images (flat, sphere, cylinder, etc. etc.).
Using the droplet the script ask to user which kind of image to choose if it cannot be understand.
In my script I need to force the type of each single image, is it possible?

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

2

Freitag, 27. März 2015, 01:58

The droplets are just a front end for krpanotools. You can use your own logic based on the dimensions and ratios of width to height to determine the input image types.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Freitag, 27. März 2015, 09:36

That's a snippet of my code:

Quellcode

1
2
$cmd = "krpanotools makepano -config=myconf.config ".$array_of_images;
$results = shell_exec($cmd);


$array_of_images is my images list, which is composed by different kind of images, In myconf.config panotype is set to autodetect.

If the type of a single image cannot be understand the script ask to choose the type: this could be managed using a solution described here .Problem with krpanotools comand line

This runs well for a single image but I don't think could be used for a set of images.

I guess the a solution could be:
- detect single image type
- make virtual tour for single image
- merge all the virtual tours

To be honest I don't know how to accomplish this task.
Anyone could suggest me how to do this or a better solution?
TYA