Open larylinz opened 9 years ago
there is a closure (probably undocumented) that you can use to get full access to the intervention image library:
so if this is not enough for you:
$form->add('photo','Photo', 'image')->move('uploads/demo/')->fit(240, 160)->preview(120,80);
$form->add('photo','Photo', 'image')->move('uploads/demo/')->resize(240, 160)->preview(120,80);
you can do..
$form->add('photo','Photo', 'image')->move('uploads/demo/')->image(function ($image) {
// $image is an instance of \Intervention\Image\ImageManagerStatic
// with uploaded image, you can do here something different...
// remember to do also: $image->save('filename');
})->preview(120,80);
Could you implement 'heighten' to image.php? It woud be handy to change the size of pictures and constraining aspect ratio.
add to image.php:
and within <protected function imageProcess()>:
Thank you!