pagevamp/laravel-image-processor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

pagevamp/laravel-image-processor

Composer 安装命令:

composer require pagevamp/laravel-image-processor

包简介

Package for uploading / resizing images into disk. Tested with s3/local & laravel 5.8

README 文档

README

A simple package for laravel to upload and resize media without any hassle.

Installation

Before to start you'll need to clone/download this package locally and then run from the terminal

$ composer install
$ php artisan vendor:publish

Usage

env('MEDIA_STORAGE_DRIVER', 's3') handles the disk s3 or public


$processor = new Processor('pv_photo.png');` // accepts path to image

or 

$processor = new Processor($request->file('image'));` // accepts path to image


$processor->resize(['small' => [100,200],'large' => [2000,1000]); // and you can define size and ratio so on

$processor->uploadResizedImages();

or 

$processor->getResizedImages()->each(function ($resizedImage){
           $resizedImage->setName('generatecustomname.jpg');
            $resizedImage->upload();
            $resizedImage->getUploadedfileUrl();
       });

Features

  • Reads image from request / disk
  • Upload original image with unique name with given sets of data
  • Resize image into multiple sizes
  • Upload resized images with custom name with custom path
  • Currently tested with amazons3 and local storage

wercker status

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固