Created
October 18, 2012 12:04
-
-
Save gsdevme/3911383 to your computer and use it in GitHub Desktop.
WideImage Resize/Crop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__ . '/WideImage/lib/WideImage.php'; | |
$image = WideImage::load(__DIR__ . '/product_1.jpg') | |
->resize(300,150,'outside') | |
->crop("center", "middle", 300, 150) | |
->saveToFile('ff.jpg'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment