TileSingleImage
class TileSingleImage extends Job implements ShouldQueue
Traits
Properties
| Image | $image | The image to generate tiles for. |
|
| string | $tempPath | Path to the temporary storage file for the tiles. |
Methods
Execute the job.
Generate tiles for the image and put them to temporary storage.
Upload the tiles from temporary local storage to the tiles storage disk.
Upload the tiles from temporary local storage to the s3 tiles storage disk.
Returns the S3Client of the s3 storage.
Returns the s3 bucket name.
Get the vips image instance.
Get the recursive directory iterator for the given path.
Details
at line 49
void
__construct(Image $image)
Create a new job instance.
at line 61
void
handle()
Execute the job.
at line 85
generateTiles(Image $image, string $path)
Generate tiles for the image and put them to temporary storage.
at line 97
uploadToStorage($disk)
Upload the tiles from temporary local storage to the tiles storage disk.
at line 119
uploadToS3Storage(AwsS3V3Adapter $disk)
Upload the tiles from temporary local storage to the s3 tiles storage disk.
at line 162
protected
getClient(mixed $disk)
Returns the S3Client of the s3 storage.
at line 173
protected string
getBucket(mixed $disk)
Returns the s3 bucket name.
at line 186
protected
sendRequests(Iterator $files, callable $onFullfill = null)
Upload files to the S3 storage.
at line 215
protected Image
getVipsImage(string $path)
Get the vips image instance.
at line 227
protected RecursiveIteratorIterator
getIterator(string $path)
Get the recursive directory iterator for the given path.