Function resizeImageFile
Resizes an image from a remote location or a local file. Puts the resized image at the destination location. The file would have the format preferred_format if possible, otherwise the default format is jpeg.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Used by:
function to achieve the resize.
Located at Sources/Subs-Graphics.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Used by:
createThumbnail()
function to achieve the resize.
Located at Sources/Subs-Graphics.php
string |
$source |
The path to the source image |
string |
$destination |
The path to the destination image |
integer |
$max_width |
The maximum allowed width |
integer |
$max_height |
The maximum allowed height |
integer |
$preferred_format = 0 |
<ul> <li>The preferred format (0 to use jpeg, 1 for gif, 2 to force jpeg, 3 for png, 6 for bmp and 15 for wbmp)</li> </ul> |
boolean
|
Whether it succeeded. |