Redimensionner image php

G4uthier Messages postés 131 Date d'inscription   Statut Membre Dernière intervention   -  
G4uthier Messages postés 131 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,


voila ce script :


Header("Content-type: image/jpeg");
$handle = new upload($_FILES['img']);
if ($handle->uploaded) {
$handle->file_new_name_body = $file1;
$handle->file_new_name_ext = 'jpg';
$handle->image_resize = true;
$handle->image_x = 200;
$handle->image_y = 200;
$handle->image_ratio_y = true;
$handle->image_ratio_x = true;
$handle->jpeg_quality = 100;
/* $handle->image_text = '$title';
$handle->image_text_direction = 'h';
$handle->image_text_color = '#FF0000';
$handle->image_text_percent = 50;
$handle->image_text_font = 4;
$handle->image_text_y = 5;
$handle->image_text_x = 5; */
$handle->process('../propertyImages');
if ($handle->processed) {
// echo 'image resized';
$handle->clean();
} else {
echo 'error : ' . $handle->error;
}
}




Lorsque je veux redimensionner la photo que je viens de poster une page blanche apparait alors que l'action de mon formulaire ne l'envoit pas sur une page vierge. Ensuite, mon image n'est pas redimensionnee.
A voir également:

1 réponse

G4uthier Messages postés 131 Date d'inscription   Statut Membre Dernière intervention   7
 
up :)
0