PHPackages                             montesjmm/resize-and-watermark - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. montesjmm/resize-and-watermark

ActiveLibrary[Image &amp; Media](/categories/media)

montesjmm/resize-and-watermark
==============================

Resize and Watermark for Laravel resizes and watermarks your pictures easily

0.3.1(10y ago)22021MITPHPPHP &gt;=5.4.0

Since Aug 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/montes/resize-and-watermark)[ Packagist](https://packagist.org/packages/montesjmm/resize-and-watermark)[ Docs](https://github.com/montes/resize-and-watermark)[ RSS](/packages/montesjmm-resize-and-watermark/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

[![Build Status](https://camo.githubusercontent.com/e4d8442df5a35e7110a5279438182ff96336896adffbadc13ca267bb9fafcb01/68747470733a2f2f7472617669732d63692e6f72672f6d6f6e7465732f726573697a652d616e642d77617465726d61726b2e737667)](https://travis-ci.org/montes/resize-and-watermark)

\#Resize And Watermark (images) Easily automate picture **upload**, generating of multiple **sizes** and **watermarking** if needed.

\##Laravel 5.2 Installation

1. Add to your composer require: "montesjmm/resize-and-watermark": "~0.3"
2. Add service provider to your config/app.php: Montesjmm\\ResizeAndWatermark\\ResizeAndWatermarkServiceProvider::class,
3. Add alias to your config/app.php aliases: 'ResizeAndWatermark' =&gt; Montesjmm\\ResizeAndWatermark\\ResizeAndWatermark::class,
4. composer update
5. php artisan vendor:publish
6. php artisan migrate
7. composer dump-autoload -o
8. php artisan db:seed --class=RwPicturesSizesTableSeeder

\##Examples

\####Download and generate sizes from image url

```
$resizer = new ResizeAndWatermark;
$picture = $resizer->store('http://example.com/image.jpg');

echo $picture->html('small'); //

echo $picture->html('big'); //
```

\####Generate sizes of form uploaded image

```
$resizer = new ResizeAndWatermark;
$file = Input::file()['file'];
$picture = $resizer->store($file);

echo $picture->html('small'); //
```

Example App
-----------

[](#example-app)

\####app/Http/routes.php

```
Route::get('/', 'WelcomeController@index');
Route::post('/', 'WelcomeController@index');
```

\####app/Http/controllers/WelcomeController.php

```
