<?php

// Simple Thumb Gen
// Por Alex para WebTaller.com

$original = imagecreatefromjpeg("1.jpg");
$thumb = imagecreatetruecolor(150,150); // Lo haremos de un tamao 150x150

$ancho = imagesx($original);
$alto = imagesy($original);

imagecopyresampled($thumb,$original,0,0,0,0,150,150,$ancho,$alto);
imagejpeg($thumb,'thumb.jpg',90); // 90 es la calidad de compresin


imagejpeg($thumb);
imagedestroy($thumb);



?>
