laravel 5.2大拇指在飞行中

时间:2016-07-10 16:32:33

标签: image laravel-5

我正在使用一个需要声明3件事的类。它将动态制作拇指(ImageMaker.php)。我把它放在重命名为IM.php的公共目录中,我的图像也位于公共区域,也在名为images的子目录中。

图像制作者需要声明三件事:

define('IMAGEMANIPULATOR_CACHE', "/_cache" ); # Relative to this file path without trailing or prepending slash; don't forget to set the right permissions to this directory
define('IMAGEMANIPULATOR_BACKUP',   "/images/backup.jpg" ); # The image to display when on the fly image isn't found; relative to this file path without prepending slash
define('IMAGEMANIPULATOR_PATH',     "/images"); # The folder to look for images in when displaying images on the fly; without prepending or trailing slash

要显示图像,源会变为

  ?

IM.php onthefly =文件名&安培;调整大小= 0.60

我用过这个非常轻微的环境没有问题。图像名称(没有路径)来自表格,我将在数据表中使用它。

所以理论上它变成了

<img src="IM.php?onthefly={{ $items['url'] }}&resize=0,60">

除了它不起作用!

这是一种观点。

帮助表示赞赏!

0 个答案:

没有答案
相关问题