Class Thumbnail
Representation of an image thumbnail.
Instances of the class are used to create IMG elements. The parameters used to create the thumbnail can be specified as a serialized string, an array of options, a version name, or a version instance.
- ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
-
ICanBoogie\Modules\Thumbnailer\Thumbnail
Direct known subclasses
Located at vendor/icanboogie-modules/thumbnailer/lib/thumbnail.php
Methods summary
public static
string|null
|
|
public static
string
|
#
format_options_as_query_string( array $options, boolean $remove_path_params = false )
Formats the options as a query string. |
public
|
#
__construct(
Constructor. |
public
mixed
|
|
public
|
|
protected
|
|
protected
array
|
|
protected
string
|
|
protected
string
|
|
protected
|
|
public
|
|
public
|
Methods inherited from ICanBoogie\Object
from(),
resolve_facade_properties(),
resolve_private_properties(),
to_array(),
to_json()
Methods inherited from ICanBoogie\ToArrayRecursive
Methods used from ICanBoogie\ToArrayRecursiveTrait
Methods used from ICanBoogie\PrototypeTrait
__call(),
__sleep(),
__wakeup(),
get_prototype(),
has_method(),
has_property(),
last_chance_get(),
last_chance_set()
Magic methods summary
Properties summary
public
|
$src |
#
The source of the thumbnail. |
public
array
|
$options |
#
Options to create the thumbnail. |
protected
string
|
$version_name |
#
Version name of the thumbnail. |
Magic properties
public
mixed
|
$width | |
#
int|null Width of the thumbnail, or |
public
mixed
|
$height | |
#
int|null Height of the thumbnail, or |
public
mixed
|
$method | |
#
string|null Resizing method, or |
public
mixed
|
$format | |
#
string|null Image format, or |
public
mixed
|
$version | |
#
Version|null The |
public
mixed
|
$w | |
#
int|null Alias to $width. |
public
mixed
|
$h | |
#
int|null Alias to $height. |
public
mixed
|
$m | |
#
string|null Alias to $method. |
public
mixed
|
$f | |
#
string|null Alias to $format. |
public
mixed
|
$v | |
#
Version|null Alias to $version. |
public
array
|
$options | |
#
Options used to create the thumbnail. |
public read-only
array
|
$filtered_options | |
#
Filtered thumbnail options. |
public read-only
string
|
$url | |
#
The URL of the thumbnail. |
public read-only
string
|
$url_base | |
#
The base to build the URL of the thumbnail. |
public read-only
array
|
$final_size | |
#
The final size (width and height) of the thumbnail. |