Skip to content

Instantly share code, notes, and snippets.

@aranw
Created October 19, 2012 08:23
Show Gist options
  • Save aranw/3916930 to your computer and use it in GitHub Desktop.
Save aranw/3916930 to your computer and use it in GitHub Desktop.
Resizer Laravel Bundle
if ( ! file_exists($image->saved_to.$filename_stripped.'-480.'.$filename_ext))
{
$file = File::get(path('public').$image->saved_to.$image->filename);
$size_480 = Resizer::open($file)
->resize(480, 340, "crop")
->save($image->saved_to.$filename_stripped."-480.".$filename_ext);
var_dump($size_480);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment