Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/09/2009, 20:25
horape
 
Fecha de Ingreso: mayo-2009
Mensajes: 210
Antigüedad: 17 años, 4 meses
Puntos: 0
Respuesta: Función thumbjpeg

Código PHP:
$thumb = imagecreatetruecolor($thumb_width, $thumb_height); 
no se q dice en las FAQ, pero ese es el primer paso para crear una pestaña

el primer parametro es el ancho, el segundo el alto

luego:

Código PHP:
imagecopyresampled($thumb, $image, 0, 0, 0, 0, $thumb_width,$thumb_height,$width, $height); 
donde $thumb_width,$thumb_height,$width, $height son ancho, alto, ancho, alto, de la pestaña y la imagen original respectivamente

asi configuras el recurso para crear la pestaña