Application
Table of Contents
Classes
- AbstractImage
- Abstract class of Image class.
- AbstractProperties
- Abstract properties class.
- Calculation
- Calculation class.
- AbstractGdCommand
- Abstract GD command (resize, crop, etc).
- AbstractImagickCommand
- Abstract Imagick command (resize, crop, etc).
- Crop
- Crop
- NoOp
- No operation.
- Resize
- Resize (not aspect ratio).
- Rotate
- Rotate
- Save
- Save command class.
- Show
- Show image to browser.
- Watermark
- Watermark image and text.
- Crop
- Crop
- NoOp
- No operation.
- Resize
- Resize (not aspect ratio).
- Rotate
- Rotate
- Save
- Save command class.
- Show
- Show image to browser.
- Watermark
- Watermark image and text.
- Avif
- AVIF file information.
- Tile
- Prop
- Dim_Prop
- Chan_Prop
- Features
- Box
- Parser
- Gif
- Gif file information class.
- WebP
- WebP file information class.
- FileSystem
- File system class.
Traits
- GdTrait
- GD trait.
- ImagickTrait
- Imagick trait.
- CalculationTrait
- Calculation trait.
- ImageTrait
- Image trait.
Constants
- ABORTED = 3
- FOUND = 0
- IMAGETYPE_AVIF = 19
- IMAGETYPE_WEBP = 18
- IMG_AVIF = 256
- IMG_WEBP = 32
- INVALID = 4
- MAX_FEATURES = 8
- MAX_NUM_BOXES = 4096
- MAX_PROPS = 32
- MAX_SIZE = 4294967295
- MAX_TILES = 16
- MAX_VALUE = 255
- NOT_FOUND = 1
- TRUNCATED = 2
- UNDEFINED = 0
Functions
- read_big_endian() : int
- Reads an unsigned integer with most significant bits first.
- read() : binary
- Reads bytes and advances the stream position by the same count.
- skip() : bool
- Advances the stream position by the given offset.
Constants
ABORTED
public
mixed
ABORTED
= 3
FOUND
public
mixed
FOUND
= 0
IMAGETYPE_AVIF
public
mixed
IMAGETYPE_AVIF
= 19
IMAGETYPE_WEBP
public
mixed
IMAGETYPE_WEBP
= 18
IMG_AVIF
public
mixed
IMG_AVIF
= 256
IMG_WEBP
public
mixed
IMG_WEBP
= 32
INVALID
public
mixed
INVALID
= 4
MAX_FEATURES
public
mixed
MAX_FEATURES
= 8
MAX_NUM_BOXES
public
mixed
MAX_NUM_BOXES
= 4096
MAX_PROPS
public
mixed
MAX_PROPS
= 32
MAX_SIZE
public
mixed
MAX_SIZE
= 4294967295
MAX_TILES
public
mixed
MAX_TILES
= 16
MAX_VALUE
public
mixed
MAX_VALUE
= 255
NOT_FOUND
public
mixed
NOT_FOUND
= 1
TRUNCATED
public
mixed
TRUNCATED
= 2
UNDEFINED
public
mixed
UNDEFINED
= 0
Functions
read_big_endian()
Reads an unsigned integer with most significant bits first.
read_big_endian(mixed $input, int $num_bytes) : int
Parameters
- $input : mixed
- $num_bytes : int
-
Number of parsed bytes.
Return values
int —Value.
read()
Reads bytes and advances the stream position by the same count.
read(stream $handle, int $num_bytes) : binary
Parameters
- $handle : stream
-
Bytes will be read from this resource.
- $num_bytes : int
-
Number of bytes read. Must be greater than 0.
Return values
binary —string|false The raw bytes or false on failure.
skip()
Advances the stream position by the given offset.
skip(stream $handle, int $num_bytes) : bool
Parameters
- $handle : stream
-
Bytes will be skipped from this resource.
- $num_bytes : int
-
Number of skipped bytes. Can be 0.
Return values
bool —True on success or false on failure.