Laravel-获取缩略图的大小

时间:2018-10-22 20:51:43

标签: laravel image-processing

我正在使用laravel图片上传功能。我需要获取thumbnail图片的大小..我无法以某种方式做到这一点。

我的代码:

 $sponsored_image_160 = Input::file('qqfile');

                // get size
 $size = $sponsored_image_160->getClientSize();
 $name = $sponsored_image_160->getClientOriginalName();

 $sponsored_image_160->move($path, $name);

 $img = Image::make($path.$name);

 I WANT TO GET SIZE OF THIS THUMBNAIL BELOW 
     $this->make_thumb($path.$name, $path."thumb_".$name, 400);

0 个答案:

没有答案