imagecache
imagecache copied to clipboard
Intervention with imagecache get height
Hello
Is it possible to get the height from a cached image object in the way it's described here? http://image.intervention.io/api/height
This is the code we're using in Laravel 5.1 to get the image object which is working:
$image->make($path);
This code we're trying to use to get the image height is not working:
$image->make($path)->height();
Thanks
You can do this by storing your actual code into a Filter class and run something like:
$img = Image::cache(function($image) {
$image->make('foo.jpg')->filter(new FooFilter);
});