class MigrateTiledImage extends TileSingleImage

Traits

InteractsWithQueue
SerializesModels
Queueable
Dispatchable

Properties

Image $image

The image to generate tiles for.

from  TileSingleImage
string $tempPath

Path to the temporary storage file for the tiles.

from  TileSingleImage
protected bool $deleteWhenMissingModels

Ignore this job if the image does not exist any more.

from  TileSingleImage
string $disk

Name of the storage disk that holds the ZIP files of tiled images.

Methods

void
__construct(Image $image, string $disk)

Create a new job instance.

void
handle()

Execute the job.

generateTiles(Image $image, string $path)

Generate tiles for the image and put them to temporary storage.

uploadToStorage()

Upload the tiles from temporary local storage to the tiles storage disk.

Image
getVipsImage(string $path)

Get the vips image instance.

getIterator(string $path)

Get the recursive directory iterator for the given path.

Details

at line 27
void __construct(Image $image, string $disk)

Create a new job instance.

Parameters

Image $image

The image to generate tiles for.

string $disk

Return Value

void

at line 38
void handle()

Execute the job.

Return Value

void

in TileSingleImage at line 80
generateTiles(Image $image, string $path)

Generate tiles for the image and put them to temporary storage.

Parameters

Image $image
string $path

Path to the cached image file.

in TileSingleImage at line 92
uploadToStorage()

Upload the tiles from temporary local storage to the tiles storage disk.

in TileSingleImage at line 116
protected Image getVipsImage(string $path)

Get the vips image instance.

Parameters

string $path

Return Value

Image

in TileSingleImage at line 128
protected RecursiveIteratorIterator getIterator(string $path)

Get the recursive directory iterator for the given path.

Parameters

string $path

Return Value

RecursiveIteratorIterator