ImageHelper
in package
Class ImageHelper
Tags
Table of Contents
Methods
- checkMaxDimensions() : bool
- downscaleImage() : mixed
- Scales down a file image if necessary.
- fixJpegOrientation() : mixed
- Fix orientation of JPEG images based on EXIF information
Methods
checkMaxDimensions()
public
static checkMaxDimensions(string $filePath) : bool
Parameters
- $filePath : string
Tags
Return values
booldownscaleImage()
Scales down a file image if necessary.
public
static downscaleImage(mixed $file) : mixed
The limits can be defined in the File Module class.
Parameters
- $file : mixed
-
File
Tags
fixJpegOrientation()
Fix orientation of JPEG images based on EXIF information
public
static fixJpegOrientation(mixed $image, mixed $file) : mixed
Parameters
- $image : mixed
-
ImageInterface
- $file : mixed
-
File|string