Function __global->_ensure_thumbnail
Definitions
sources/images2.php
- (Helper for ensure_thumbnail).
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$full_url | URLPATH | required parameter | N/A | N/A | The full URL to the image which will-be/is thumbnailed |
$thumb_url | URLPATH | required parameter | N/A | N/A | The URL to the thumbnail (blank: no thumbnail yet) |
$thumb_dir | ID_TEXT | required parameter | N/A | N/A | The directory, relative to the software install's uploads directory, where the thumbnails are stored. MINUS "_thumbs" |
$table | ID_TEXT | required parameter | N/A | N/A | The name of the table that is storing what we are doing the thumbnail for |
$id | AUTO_LINK | required parameter | N/A | N/A | The ID of the table record that is storing what we are doing the thumbnail for |
$image_field_name | ID_TEXT | thumb_url | N/A | N/A | The name of the table field where thumbnails are saved |
$thumb_width | ?integer | Null | N/A | N/A | The thumbnail width to use (null: default) |
$only_make_smaller | boolean | False | N/A | N/A | Whether to apply a 'never make the image bigger' rule for thumbnail creation (would affect very small images) |
$original_filename | ?string | Null | N/A | N/A | Original filename of image (null: unknown) |
Return
- The URL to the thumbnail
- Type: URLPATH
- Set: N/A
- Range: N/A