[go: nahoru, domu]

Skip to content

jeremytubbs/laravel-deepzoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Artisan command for generating Deepzoom image tiles.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages