jeremytubbs / laravel-deepzoom
Laravel Deepzoom Tile Generator for OpenSeadragon
Installs: 1 271
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.5.9
- jeremytubbs/deepzoom: 0.5.*
Requires (Dev)
- larapack/dd: ^1.0
README
Laravel Tile Generator for use with OpenSeadragon: https://openseadragon.github.io
This package utilizes my deepzoom package: https://github.com/jeremytubbs/deepzoom
Usage
Artisan command to queue image tiling:
php artisan deepzoom:tile
The artisan command accepts an image argument, as well as; filename and folder options. If no image argument is provided you will recieve a prompt to enter an image name.
php artisan deepzoom:tile KISS.jpg --filename=kiss --folder=keep-it-simple-stupid
The artisan command is queued and will use the default
queue driver set in the queue.php
config file.
If you would like to use the makeTiles
command inside a controller add the trait and dispatch the command:
use Jeremytubbs\LaravelDeepzoom\Commands\MakeTiles; class MyController extends Controller { use \Illuminate\Foundation\Bus\DispatchesJobs; public function handle($image, $filename = null, $folder = null) { $command = new MakeTiles($image, $filename, $folder); $this->dispatch($command); } }
Setup
Add service provider to app/config
:
Jeremytubbs\LaravelDeepzoom\DeepzoomServiceProvider::class,
Publish the deepzoom.php
config file:
php artisan vendor:publish