Lowlight 0 Denunciar post Postado Junho 7, 2005 Usa regra de três PHP [*]<? [*]$origem = 'img01_0.jpg';//caminho da foto de origem, é só substituir por um file [*]$destino = 'tn_'.$origem; //caminho do thumbnail [*] [*]$im = imagecreatefromjpeg($origem); [*]$w = imagesx($im); [*]$h = imagesy($im); [*] [*]$nw = 100; [*]$nh = ($nw*$h)/$w; [*] [*]$ni = imagecreatetruecolor($nw,$nh); [*]imagecopyresized($ni,$im,0,0,0,0,$nw,$nh,$w,$h); [*]imagejpeg($ni,$destino,80); [*]?> Espero que ajude Compartilhar este post Link para o post Compartilhar em outros sites
Lowlight 0 Denunciar post Postado Junho 7, 2005 tem que ter a biblioteca GD tb http://www.boutell.com/gd Compartilhar este post Link para o post Compartilhar em outros sites