2017 © Pedro PelĂĄez
 

library image

Manage images

image

fernandopetry/image

Manage images

  • Friday, May 25, 2018
  • by fernandopetry
  • Repository
  • 1 Watchers
  • 0 Stars
  • 297 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 52 % Grown

The README.md

Thumbnail

Como instalar via composer

composer require fernandopetry/image

Usando em um arquivo para gerar thumbs

// thumb.php

<?php
require_once dirname(__FILE__) . '/vendor/autoload.php';
use \Petry\Image\Thumbnail\Thumbnail;

// path completo da imagem
$img = dirname(__FILE__) . '/cao.jpg';
// path onde serĂĄ gravado as thumbs
$path = dirname(__FILE__) . '/thumb';

// inicializa o thumbnail
$thumb = new Thumbnail($img,$path,200,150);
$thumb->generate();

// exibi a imagem
$thumb->show();

Usando 2

<?php
require_once 'vendor/autoload.php';
use \Petry\Image\Thumbnail\Thumbnail;

// path completo da imagem
$img = dirname(__FILE__) . '/cao.jpg';
// path onde serĂĄ gravado as thumbs
$path = dirname(__FILE__) . '/thumb';

// inicializa o thumbnail
$thumb = new Thumbnail($img,$path,200,150,'opcional nome da imagem');
$thumb->generate();

// Path completo do thumbnail
$thumb->getPathThumbnail();

// Imagem no formato base64
$thumb->getBase64();

// Nome do thumbnail
$thumb->getThumbnailName();

The Versions

25/05 2018

dev-master

9999999-dev

Manage images

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

The Development Requires

php image fernandopetry

25/05 2018

1.6.2

1.6.2.0

Manage images

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

The Development Requires

php image fernandopetry

25/05 2018

1.6.1

1.6.1.0

Manage images

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

The Development Requires

php image fernandopetry

24/05 2018

1.6.0

1.6.0.0

Manage images

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

The Development Requires

php image fernandopetry

23/03 2018

1.5.1

1.5.1.0

Manage images

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

The Development Requires

php image fernandopetry

01/03 2018

1.5.0

1.5.0.0

Manage images

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

The Development Requires

php image fernandopetry

10/10 2017

1.4.0

1.4.0.0

Manage images

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

The Development Requires

php image fernandopetry

15/09 2017

1.3.0

1.3.0.0

Manage images

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

The Development Requires

php image fernandopetry

12/09 2017

1.2.0

1.2.0.0

Manage images

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

The Development Requires

php image fernandopetry

18/07 2017

1.1.0

1.1.0.0

Manage images

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6

 

The Development Requires

php image fernandopetry

18/07 2017

1.0.0

1.0.0.0

Manage images

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

php image fernandopetry