PhotoResizer
Owerwrite system image resize method, because we need increase image
Class PhotoResizer
Table of Contents
Constants
- RESIZE_DOWN = 30
- RESIZE_DOWN_CROP = 40
- RESIZE_NO = 0
- RESIZE_UP = 10
- RESIZE_UP_CROP = 20
Methods
- checkPhotos() : array<string|int, mixed>
- Check photo sizes by type of converter
- ResizeImageGet() : bool|mixed
- Overwrite system ResizeImageGet. Need for increase images
- sortPhotoArray() : mixed
Constants
RESIZE_DOWN
public
mixed
RESIZE_DOWN
= 30
RESIZE_DOWN_CROP
public
mixed
RESIZE_DOWN_CROP
= 40
RESIZE_NO
public
mixed
RESIZE_NO
= 0
RESIZE_UP
public
mixed
RESIZE_UP
= 10
RESIZE_UP_CROP
public
mixed
RESIZE_UP_CROP
= 20
Methods
checkPhotos()
Check photo sizes by type of converter
public
static checkPhotos(mixed $photos, mixed $type) : array<string|int, mixed>
Parameters
- $photos : mixed
-
- array of photo IDs, ore one photo ID
- $type : mixed
Return values
array<string|int, mixed> —- only photos with satisfy of requirements.
ResizeImageGet()
Overwrite system ResizeImageGet. Need for increase images
public
static ResizeImageGet(mixed $file, mixed $arSize[, int $resizeType = BX_RESIZE_IMAGE_PROPORTIONAL ][, bool $bInitSizes = false ][, bool $arFilters = false ][, bool $bImmediate = false ][, bool $jpgQuality = false ]) : bool|mixed
Parameters
- $file : mixed
- $arSize : mixed
- $resizeType : int = BX_RESIZE_IMAGE_PROPORTIONAL
- $bInitSizes : bool = false
- $arFilters : bool = false
- $bImmediate : bool = false
- $jpgQuality : bool = false
Return values
bool|mixedsortPhotoArray()
public
static sortPhotoArray(mixed $photos, mixed $type) : mixed
Parameters
- $photos : mixed
- $type : mixed