MigrateTiledImage
class MigrateTiledImage extendsTileSingleImage
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 |
protectedbool | $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
void
handle()
Execute the job.
generateTiles(Image$image,string$path)
Generate tiles for the image and put them to temporary storage.
from TileSingleImage
uploadToStorage()
Upload the tiles from temporary local storage to the tiles storage disk.
from TileSingleImage
getIterator(string$path)
Get the recursive directory iterator for the given path.
from TileSingleImage
Details
at line27
void
__construct(Image$image,string$disk)
Create a new job instance.
at line38
void
handle()
Execute the job.
inTileSingleImageat line80
generateTiles(Image$image,string$path)
Generate tiles for the image and put them to temporary storage.
inTileSingleImageat line92
uploadToStorage()
Upload the tiles from temporary local storage to the tiles storage disk.
inTileSingleImageat line116
protectedImage
getVipsImage(string$path)
Get the vips image instance.
inTileSingleImageat line128
protectedRecursiveIteratorIterator
getIterator(string$path)
Get the recursive directory iterator for the given path.