Hi, I am new to manipulating JPGs using PHP. But i managed to create an application that displays an JPG image in the browser (see below).
I have boiled the code down to the most nesesary. My problem is that when i load the file "c:\file.jpg" directly in the IE browser (using <IMG SRC='c:\file.jpg'>), and then get properties on the image by right clicking in the browser. the size is the same as it is on the HD (83Kb). However when i use the PHP code and get properties on the image by right clicking in the browser. the image size is 264Kb. How come the picture is bigger when loaded trough PHP as it is when loaded trough the browser directly ? best regards John <-----generate_jpg_picture.php starts-------> <?php header("Content-type: image/jpeg", true); $path = $_GET['filepath']; $im = imagecreatefromjpeg($path); Imagejpeg($im, '', 100); ImageDestroy($im); ?> <-----generate_jpg_picture.php ends-------> <-----some_file.php starts-------> <html> <head> <title>PHP Test</title> </head> <body> <IMG SRC='generate_jpg_picture.php?filepath=<?php echo urlencode("c:\\file.jpg"); ?>'> <IMG SRC='c:\file.jpg'> </body> </html> <-----some_file.php ends-------> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php