Disregard original file format after resizing, as it keeps lossless [png]
compression [size] and inconsistent results.
Unaltered request extension may not match, but should mostly display
correctly as browsers should prefer the correct content-type instead.
'-trim',
'-resize', "${width}x${height}",
'-quality', '90%',
'-trim',
'-resize', "${width}x${height}",
'-quality', '90%',
]));
$return = shell_exec("$cmd 2>&1");
if ($return) {
]));
$return = shell_exec("$cmd 2>&1");
if ($return) {