class TileSingleImage extends Job implements ShouldQueue

Traits

InteractsWithQueue
SerializesModels
Queueable
Dispatchable

Properties

Image $image The image to generate tiles for.
string $tempPath Path to the temporary storage file for the tiles.
protected bool $deleteWhenMissingModels Ignore this job if the image does not exist any more.

Methods

void
__construct(Image $image)

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.

Details

at line 47
void __construct(Image $image)

Create a new job instance.

Parameters

Image $image The image to generate tiles for.

Return Value

void

at line 58
void handle()

Execute the job.

Return Value

void

at line 76
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.

at line 88
uploadToStorage()

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

at line 102
protected Image getVipsImage(string $path)

Get the vips image instance.

Parameters

string $path

Return Value

Image