note 111090 rejected from function.imagecreatefromjpeg by googleguy
| From: | googleguy@php.net | Date: | Sun, 13 Jan 2013 14:26:08 +0000 |
| Subject: | note 111090 rejected from function.imagecreatefromjpeg by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193012@lists.php.net to get a copy of this message | ||
Note Submitter: razak dot salman at gmail dot com
----
this keep showing error and i dont know what to do. please help
<?php ini_set('gd.jpeg_ignore_warning', 1); ?>
<?php
ini_set('memory_limit','64M');
$one = '1.jpg';
$targ_w= 600;
$targ_h = 400;
$two = imagecreatefromjpeg($one);
$three = imagecreatetruecolor($targ_w,$targ_h);
$jpeg_quality = 100;
imagecopyresampled($three,$two,0,0,100,100,$targ_w,$targ_h,$targ_w,$targ_h);
$newname = time().'.jpg';
imagejpeg($three,$newname, 100);
imagedestroy($three);
?>