Git Product home page Git Product logo

resize's Introduction

Perfect Image Resize

This easy to use library to uploads, validates, resize, watermark and save images to disk.

License

Depenencies

You must install following packages before installing this package.

Intervention Image

Perfect File Name

Laravel Installation

Install using composer:

composer require salmanbe/resize

There is a service provider included for integration with the Laravel framework. This service should automatically be registered else to register the service provider, add the following to the providers array in config/app.php:

Salmanbe\Resize\ResizeServiceProvider::class,

You can also add it as a Facade in config/app.php:

'Filename' => Salmanbe\Resize\Resize::class,

Global Configuration

Run php artisan vendor:publish --provider="Salmanbe\Resize\ResizeServiceProvider" to publish configuration file.

Basic Usage

Add use Salmanbe\Resize\Resize; or use Resize; at top of the class where you want to use it. Then

$image = new Resize($request->image);
$image->resize(public_path('pictures/blog/large/'), 768, 400);

Full Documentation

Follow the link for installation, configuration, options and code examples.

Uninstall

First remove Salmanbe\Resize\ResizeServiceProvider::class, and 'Filename' => Salmanbe\Resize\Resize::class, from config/app.php if it was added. Then Run composer remove salmanbe/resize

License

This library is licensed under THE MIT License. Please see License File for more information.

Security contact information

To report a security vulnerability, follow these steps.

resize's People

Watchers

Salman Javaid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.