note 47384 added to function.imagecreatetruecolor

From: Date: Sun, 14 Nov 2004 17:31:47 +0000
Subject: note 47384 added to function.imagecreatetruecolor
Groups: php.notes 
Request: Send a blank email to php-notes+get-80518@lists.php.net to get a copy of this message
Hey, I made a code where it outputs image. I chose image by ?image=/blah/blah.jpg and then it takes it from outside web tree from that dir. The problem I'm having is that the quality outputed by PHP is much lower than original JPG. Code: header("Content-type: image/jpeg"); $image2 = "/www/n/i/nizamas.com/docs/" . $image; $im = imagecreatefromjpeg($image2); imagejpeg($im); imagedestroy($im); Here are the 2 links to show difference: http://www.nizamas.com/auct/586_knov/586_knovstart.jpg http://www.nizamas.com/image.php?i=...6_knovstart.jpg Thanks in advance. Matas ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatetruecolor.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47384 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47384&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47384&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47384&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47384&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47384&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47384&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47384&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80518) next »