
08/03/2010, 23:26
|
| | Fecha de Ingreso: octubre-2007
Mensajes: 44
Antigüedad: 17 años, 5 meses Puntos: 0 | |
Respuesta: Cambiar tamaño de imagen He descargado la clase... pero me pasa lo siguiente: $marco_menu = new upload("./img/rectangulo_menu.jpg"); $marco_menu->image_resize = true;
...
<?php echo "<table background=". dimensiona($marco_menu,$width_menu_manuales,$height_menu_manu ales). " width=".$width_menu_manuales." height=".$height_menu_manuales.">"; ?>
Y en la función hago lo siguiente: function dimensiona($imagen,$width,$height){ $imagen ->image_x = ($width - 10); $imagen ->image_y = ($height - 10); return $imagen;
}
y me tira el siguiente error: Catchable fatal error: Object of class upload could not be converted to string in C:\xampp\htdocs\locoXmiPC\Index.php on line 92 |