// build img config
$image = Image::forge(array(
'quality' => 100,
'driver' =>'gd',
'bgcolor' => '#fff',
'filetype' => 'jpg',
));
// Edit image to create our 512 x 512 img
$image->load($editImage) // load image
->resize($imageWidth, $imageHeight, true, true)//resize image
->crop($cropX, $cropY, $cropX2, $cropY2)// crop image
->save($editDir.$imgParts[0]."_512.".$imgParts[1]);
It looks like you're new here. If you want to get involved, click one of these buttons!