CopyImage
in package
Table of Contents
Properties
- $imagePath : string
- $isDeleteOrigin : bool
- $path : string
- $serverId : string
- $sizes : array<string|int, int>
- $squareSizes : array<string|int, int>
Methods
- __construct() : mixed
- copy() : string
- getNewImagePath() : string
- processCopy() : void
Properties
$imagePath
public
string
$imagePath
$isDeleteOrigin
public
bool
$isDeleteOrigin
$path
public
string
$path
$serverId
public
string
$serverId
$sizes
public
array<string|int, int>
$sizes
= \MetaFox\Core\Support\FileSystem\Image\Plugins\ResizeImage::SIZE
$squareSizes
public
array<string|int, int>
$squareSizes
= []
Methods
__construct()
public
__construct(string $imagePath[, string $serverId = 'public' ][, string $path = 'photo' ][, bool $isDeleteOrigin = false ][, array<string|int, int> $sizes = [] ][, array<string|int, int> $squareSizes = [] ]) : mixed
Parameters
- $imagePath : string
- $serverId : string = 'public'
- $path : string = 'photo'
- $isDeleteOrigin : bool = false
- $sizes : array<string|int, int> = []
- $squareSizes : array<string|int, int> = []
Tags
copy()
public
copy() : string
Return values
stringgetNewImagePath()
private
getNewImagePath(string $path) : string
Parameters
- $path : string
Return values
stringprocessCopy()
private
processCopy(array<string|int, int> $sizes, string $imagePathConvert, string $newImagePathConvert, bool $isSquare) : void
Parameters
- $sizes : array<string|int, int>
- $imagePathConvert : string
- $newImagePathConvert : string
- $isSquare : bool