github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

insidegui / galleryImg

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Classe baseada na m2brimagem utilizada para manipulação avançada de imagens com PHP — Read more

  cancel

http://gallery.precisodesite.com.br

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Criando repositorio 
insidegui (author)
Tue Oct 13 11:00:26 -0700 2009
commit  baa86977d15d13e8ca9ece0e5b772e01383264e9
tree    5e4843df8250b0f8bb902bc7e2d44ceb486d5d38
galleryImg /
name age
history
message
file README Loading commit data...
directory format_supports/
file galleryImg.php
README
galleryImg - Criada por Guilherme Rambo, baseada na classe m2brimagem de Davi Tavares Ferreira e Paulo Coutinho

Tarefas:

1 - Carregar imagem:

$img = new galleryImg("origem.png");

2 - Gravar imagem (enviar imagem ao browser):

$img = new galleryImg("origem.png");
header("Content-type:image/png");
$img->grava();

3 - Gravar imagem (em arquivo):

$img = new galleryImg("origem.png");
$img->grava("arquivo.jpg", true, 100);

4 - Converter png em jpg mantendo o fundo branco:

$img = new galleryImg("origem.png");
$img->fix_png_alpha();
$img->grava("arquivo.jpg", true, 100);

5 - Converter png em jpg trocando o background:

$img = new galleryImg("origem.png");
$bg = array(255,0,0); //vermelho
$img->fix_png_alpha($bg);
$img->grava("arquivo.jpg", true, 100);

6 - Redimensionar imagem:

$img = new galleryImg("origem.png");
$img->redimensiona(250,250,'crop');
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server