2017 © Pedro PelĆ”ez
 

library resize

Library pra redimensionamentos de imagens

image

escapework/resize

Library pra redimensionamentos de imagens

  • Monday, May 21, 2018
  • by luisdalmolin
  • Repository
  • 7 Watchers
  • 4 Stars
  • 2,045 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 1 % Grown

The README.md

EscapeWork\Resize Build Status Latest Stable Version Total Downloads

THIS LIBRARY IS NOT MANITAINED ANYMORE, (*1)

Componente que faz uma abstraĆ§Ć£o da library Imagine para fazer manipulaƧƵes com imagens., (*2)

Exemplos

use EscapeWork\Resize\Resize;

$resize = new Resize('/path/to/image.jpg');
$resize->setWidth(200)->setHeight(100)->resize(); # ajusta o tamanho automƔticamente, mantendo no mƔximo 200px de largura e/ou 100px de altura

$resize = new Resize('/path/to/image.jpg');
$resize->setWidth(90)->setHeight(90)->crop(); # redimensiona, e depois cropa exatamente 90x90, podendo cortar algumas partes da imagem

Crop a partir de um X e Y definidos

$resize = new Resize('/path/to/image.jpg');
$resize->setX(20)->setY(30)->setWidth(300)->setHeight(400)->crop();

Minimum Width and Minimum Height

$resize = new Resize('/path/to/image.jpg');
$resize->setMinWidth(300)->setMinHeight(500)->resize();

$resize = new Resize('/path/to/other/image.jpg');
$resize->setMinHeight(549)->resize();

$resize = new Resize('/path/to/another/image.jpg');
$resize->setMinWidth(300)->resize();

Upload de arquivos

use EscapeWork\Resize\Upload;

$upload = new Upload($original, $newFile);

Upload e redimensionamento a partir de um array

use EscapeWork\Resize\Resize;

$dir      = 'img';
$img      = 'original.jpg';
$sizes    = array(
    'mini-' => array(
        'width'  => 80, 
        'height' => 80, 
        'crop'   => true
    ), 
    'thumb-' => array(
        'width'  => 150, 
        'height' => 100, 
        'crop'   => false
    ), 
    'vga-' => array(
        'width'  => 640, 
        'height' => 480, 
        'crop'   => false
    ), 
);

# cria 3 novas imagens [mini-original.jpg], [thumb-original.jpg], [vga-original.jpg], 
# redimensionadas e cropadas conforme as informaƧƵes do array 
Resize::make( $dir, $img, $sizes );

InstalaĆ§Ć£o

A instalaĆ§Ć£o estĆ” disponĆ­vel via Composer., (*3)

``` { "require": { "escapework/resize": "0.5.*" } }, (*4)

The Versions

21/05 2018

dev-master

9999999-dev

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Kasper

23/03 2018

0.5.3

0.5.3.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Kasper

05/12 2017

0.5.2

0.5.2.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Kasper

10/12 2013

1.0.x-dev

1.0.9999999.9999999-dev

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Kasper

10/12 2013

0.5.1

0.5.1.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Kasper

11/07 2013

0.5.0

0.5.0.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Kasper

09/03 2013

0.4.3

0.4.3.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Kasper

09/03 2013

0.4.2

0.4.2.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduardo Kasper

21/02 2013

0.4.1

0.4.1.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

30/01 2013

0.4.0

0.4.0.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

28/01 2013

0.3.3

0.3.3.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

25/01 2013

0.3.2

0.3.2.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

25/01 2013

0.3.1

0.3.1.0

Library pra redimensionamentos de imagens

  Sources   Download

MIT

The Requires

 

The Development Requires

08/12 2012

0.1

0.1.0.0

Library pra redimensionamentos de imagens

  Sources   Download

CC-BY-NC-3.0

The Requires

  • php >=5.3.0

 

The Development Requires