LaravelPackages.net
Acme Inc.
Toggle sidebar
jeremytubbs/laravel-deepzoom

Laravel Deepzoom Tile Generator for OpenSeadragon

1.302
11
0.3.0
About jeremytubbs/laravel-deepzoom

jeremytubbs/laravel-deepzoom is a Laravel package for laravel deepzoom tile generator for openseadragon. It currently has 11 GitHub stars and 1.302 downloads on Packagist (latest version 0.3.0). Install it with composer require jeremytubbs/laravel-deepzoom. Discover more Laravel packages by jeremytubbs or browse all Laravel packages to compare alternatives.

Last updated

Deepzoom

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
Comments