Description
This function creates thumbnails from images. The function saves the new thumbnail images in a thumbnails
subdirectory inside the original directory. The system prepends thumbnail filenames with tn_
(for example, tn_picture.jpg
).
Warning:
- UAPI (recommended) — None.
- cPanel API 2 —
ImageManager::thumbnail
— This function is deprecated and does not return useful output.
Examples
Parameters
Parameter |
Type |
Description |
Possible Values |
Example |
dir |
string |
Required The file to convert, or a directory that contains the files to convert. |
A valid filename or directory name. |
public_html/images |
wperc |
integer |
Required The percentage by which to reduce the thumbails' width. |
A valid integer. |
10 |
hperc |
integer |
Required The percentage by which to reduce the thumbails' height. |
A valid integer. |
10 |
Returns
This function returns a confirmation message.