HumHub Documentation (unofficial)

ImageHelper
in package

Class ImageHelper

Tags
since
1.5.2

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
throws
Exception
Return values
bool

downscaleImage()

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
since
1.7

        
On this page

Search results