/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$line = $file->getWidth() > $file->getHeight() ? $file->getHeight() : $file->getWidth(); $file->crop('center', 'center', $line, $line)->resize($size[0], $size[1])->saveToFile($save_paths[$key]);
Comments
