note 31575 added to function.imagecopyresized

From: Date: Sat, 26 Apr 2003 18:52:45 +0000
Subject: note 31575 added to function.imagecopyresized
Groups: php.notes 
Request: Send a blank email to php-notes+get-47144@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. -- http://www.php.net/manual/en/function.imagecopyresized.php http://master.php.net/manage/user-notes.php?action=edit+31575 http://master.php.net/manage/user-notes.php?action=delete+31575 http://master.php.net/manage/user-notes.php?action=reject+31575

« previous php.notes (#47144) next »