Php 在哪里可以找到与imagine包关联的方法?
我已经在我的laravel项目中成功安装了,现在,我想做的就是使用它,但我真的找不到的是,这个强大的包有哪些方法,有没有任何与这个包相关的文档来说明它提供的方法?我在存储库中看到的只是一个使用示例,请参见以下内容:Php 在哪里可以找到与imagine包关联的方法?,php,laravel-4,Php,Laravel 4,我已经在我的laravel项目中成功安装了,现在,我想做的就是使用它,但我真的找不到的是,这个强大的包有哪些方法,有没有任何与这个包相关的文档来说明它提供的方法?我在存储库中看到的只是一个使用示例,请参见以下内容: <?php use Imagine\Image\Box; use Imagine\Image\ImageInterface; use Orchestra\Imagine\Facade as Imagine; function create_thumbnail($path,
<?php
use Imagine\Image\Box;
use Imagine\Image\ImageInterface;
use Orchestra\Imagine\Facade as Imagine;
function create_thumbnail($path, $filename, $extension)
{
$width = 320;
$height = 320;
$mode = ImageInterface::THUMBNAIL_OUTBOUND;
$size = new Box($width, $height);
$thumbnail = Imagine::open("{$path}/{$filename}.{$extension}")->thumbnail($size, $mode);
$destination = "{$filename}.thumb.{$extension}";
$thumbnail->save("{$path}/{$destination}");
}
在谷歌搜索“想象文档”,这是第一个结果。@KirkBeard-DANM!谢谢有时我忘了书中最古老的把戏!