Thumb
class Thumb
Methods
__construct($storage, $filePath, $cachePrefix = '_slims_img_cache_resolutionWidth_x_resolutionHeight_')
No description
getFilePath()
No description
void
getCacheOption($key)
Get cache option
void
setContentType(string $type = '')
Set header content type
void
setCacheOption(string $key, mixed $value)
Set cache option
value
isFileAllow()
Check if file is allow or not
bool
isFileExists()
Existing file
bool
isReadable()
Read permission is important
bool
isCacheExists()
Cache check
void
setWidth(int|string $width)
Setter for width
void
setHeight(int|string $height)
Setter for height
value
orError()
Set error state
static
setError(string $error = 'filenotfound')
No description
void
generate()
Generate thumbnail image and caching image
Details
at line 86
__construct($storage, $filePath, $cachePrefix = '_slims_img_cache_resolutionWidth_x_resolutionHeight_')
No description
at line 94
getFilePath()
No description
at line 105
void
getCacheOption($key)
Get cache option
at line 115
void
setContentType(string $type = '')
Set header content type
at line 131
void
setCacheOption(string $key, mixed $value)
Set cache option
at line 141
value
isFileAllow()
Check if file is allow or not
at line 154
bool
isFileExists()
Existing file
at line 168
bool
isReadable()
Read permission is important
at line 182
bool
isCacheExists()
Cache check
at line 193
void
setWidth(int|string $width)
Setter for width
at line 204
void
setHeight(int|string $height)
Setter for height
at line 214
Thumb
prepare()
Sizing processs
at line 233
value
orError()
Set error state
at line 239
static
setError(string $error = 'filenotfound')
No description
at line 253
void
generate()
Generate thumbnail image and caching image