MediaHelper
class MediaHelper
Media helper class
Methods
boolean
isImage(
string $fileName)
Checks if the file is an image
static
string
getTypeIcon(
string $fileName)
Gets the file extension for purposed of using an icon
boolean
canUpload(
array $file,
string $component = 'com_media')
Checks if the file can be uploaded
static
array
imageResize(
integer $width,
integer $height,
integer $target)
Calculate the size of a resized image
array
countFiles(
string $dir)
Counts the files and directories in a directory that are not php or html files.
integer
toBytes(
string|integer $val)
Small helper function that properly converts any configuration options to their byte representation.