web6 / vrto-downloader
Download panorama images from vrto.me
This package is auto-updated.
Last update: 2025-03-23 07:19:19 UTC
README
This tools downloads panorama images hosted on VRto.me. We use it to create offline panoramas using krpano.
Install
There are three ways to install this tool.
Composer
You can add this library as a depedency to a project already using composer.
$ composer require web6/vrto-downloader
GIT
You can download this library as a standalone tool and clone it anywhere. This way you will be alble to have all the project history and will be able to make future updates easily.
$ git clone https://github.com/web6-fr/vrto-downloader.git
$ cd vrto-downloader
$ composer install
ZIP ARCHICE
You can download the zip archive of this library and extract it anywhere on your computer. than run :
$ cd /path/to/vrto-downloader
$ composer install
Usage
Find the VRto.me panoeama tiles URL
To do this I usualy go to the sources panel in the development tools inspector and find an image used by the panorama.
Than I copy the part of the URL ending with .tiles
. For example in this screenshot the URL is :
https://vrto.me/_office/files/2/projects/blackhaus_-_panama_house/panos/panama_gear_high_res_gear01jpg.tiles/d/l1/1/l1_d_1_1.jpg?t=2016-12-12_2241&s=generated
And the retained tiles URL is:
https://vrto.me/_office/files/2/projects/blackhaus_-_panama_house/panos/panama_gear_high_res_gear01jpg.tiles
Create a php script
Create a PHP script with your won configuration :
include_once('path/to/vrto-downloader/vendor/autoload.php'); $panoramaTilesUrl = 'https://vrto.me/_office/files/2/projects/blackhaus_-_panama_house/panos/panama_gear_high_res_gear01jpg.tiles'; $targetFolder = '/path/to/target/folder'; $options = array( 'keepFolderStructure' => true ); try { $downloader = new \W6\VrtoDownloader\VrtoDownloader( $panoramaTilesUrl, $targetFolder ); $downloader->execute(); } catch ( \W6\VrtoDownloader\VrtoDownloaderException $e ) { die( 'Error : ' . $e->getMessage() ); }