定制 lostcause/image 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lostcause/image

Composer 安装命令:

composer require lostcause/image

包简介

Based on Creolab\Image. Manipulate images, create thumbs, crop...

README 文档

README

This is just like Creolab/Image, I just want to rename the alias so it doesn't overlap the Intervention/Image one.

Image

Resize, crop and cache images for Laravel 4. Framework agnostic coming soon.

Installation

Simply add the following to your composer.json file:

"lostcause/image": "dev-master"

And you can also add the service provider to app/config/app.php:

'Creolab\Image\ImageServiceProvider',

And register the facade in the same file under aliases:

'CreolabImage' => 'Creolab\Image\ImageFacade',

Usage

You can use the library directly in your views like this:

<img src="{{ CreolabImage::resize('public/path/to/image.jpg', 640, 480) }}">

Also to generate square thumbs:

<img src="{{ CreolabImage::thumb('public/path/to/image.jpg', 80) }}">

Bitdeli Badge

统计信息

  • 总下载量: 68
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-29