resize()
resize(string $srcSpec, string $destSpec, int $new_w, int $new_h)
Resize an image to the specified width and height.
This method makes no checks for upscaling, downscaling, or if image aspect ratio is maintained.
Parameters
string | $srcSpec | The complete path to the input file. |
string | $destSpec | The complete path to the output file. |
int | $new_w | The destination width (in pixels). |
int | $new_h | The destination height (in pixels). |