MigrateTiledImage
class MigrateTiledImage extends TileSingleImage
Traits
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
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.
Get the recursive directory iterator for the given path.
Details
at line 27
void
__construct(Image $image, string $disk)
Create a new job instance.
at line 38
void
handle()
Execute the job.
in
TileSingleImage at line 90
generateTiles(Image $image, string $path)
Generate tiles for the image and put them to temporary storage.
in
TileSingleImage at line 102
uploadToStorage($disk)
Upload the tiles from temporary local storage to the tiles storage disk.
in
TileSingleImage at line 124
uploadToS3Storage(AwsS3V3Adapter $disk)
Upload the tiles from temporary local storage to the s3 tiles storage disk.
in
TileSingleImage at line 167
protected
getClient(mixed $disk)
Returns the S3Client of the s3 storage.
in
TileSingleImage at line 178
protected string
getBucket(mixed $disk)
Returns the s3 bucket name.
in
TileSingleImage at line 191
protected
sendRequests(Iterator $files, callable $onFullfill = null)
Upload files to the S3 storage.
in
TileSingleImage at line 220
protected Image
getVipsImage(string $path)
Get the vips image instance.
in
TileSingleImage at line 232
protected RecursiveIteratorIterator
getIterator(string $path)
Get the recursive directory iterator for the given path.