note 31575 rejected from function.imagecopyresized by alindeman
| From: | alindeman@php.net | Date: | Sat, 26 Apr 2003 19:27:42 +0000 |
| Subject: | note 31575 rejected from function.imagecopyresized by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-47147@lists.php.net to get a copy of this message | ||
Friends, I am needing to diminish the quality of "n" images in a directory.
The below dumb routine the quality of only 1 image. I want that exactly it functions for
"n" images in one same page.
## routine ##
<?
header("Content-type: image/jpeg");
$nova_largura = 100;
$nova_altura = 100;
$imagem = "D:\Formatura0012.JPG";
$img_origem = imagecreatefromjpeg($imagem);
$img_destino = imagecreatetruecolor($nova_largura,$nova_altura);
imagecopyresampled($img_destino,$img_origem,0,0,0,0,$nova_largura,
$nova_altura,imagesx($img_origem),
imagesy($img_origem));
imageJPEG($img_destino);
?>
## routine ##
How to make?
In case that they know, please it sends me an email: vc.falacomigo@bol.com.br
It is thank: Olavo Alexandrino
PS: It forgives my English.