Image
in package
Table of Contents
Methods
- resample() : bool|resource
- Re-samples and saves an image image
- resize() : array<string|int, mixed>
- Resize image
Methods
resample()
Re-samples and saves an image image
public
resample(mixed $file, mixed $path, int $w, int $h) : bool|resource
Parameters
- $file : mixed
-
- image path
- $path : mixed
-
- target path
- $w : int
-
- width, returned from resize()
- $h : int
-
- heigth, returned from resize()
Return values
bool|resourceresize()
Resize image
public
resize(string $imgSrc[, int $maxWidth = null ][, int|null $maxHeight = null ]) : array<string|int, mixed>
Parameters
- $imgSrc : string
- $maxWidth : int = null
- $maxHeight : int|null = null