note 75258 added to function.imagecopyresampled

From: Date: Sun, 20 May 2007 22:05:08 +0000
Subject: note 75258 added to function.imagecopyresampled
Groups: php.notes 
Request: Send a blank email to php-notes+get-126778@lists.php.net to get a copy of this message
Be wary of this function when resizing images to make them *larger* than the original due to the memory consumption rate. For example a 200KB JPEG file (1024x768) will take up 4MB of memory when loaded, but when resampled to twice the the size the memory use jumps to 20.1MB. imagecopyresized does the same. Allow approx. 5 bytes per *pixel* for memory allowance when dealing with true colour images. ---- Server IP: 194.145.210.4 Probable Submitter: 88.96.15.166 ---- Manual Page -- http://www.php.net/manual/en/function.imagecopyresampled.php Edit -- https://master.php.net/note/edit/75258 Del: integrated -- https://master.php.net/note/delete/75258/integrated Del: useless -- https://master.php.net/note/delete/75258/useless Del: bad code -- https://master.php.net/note/delete/75258/bad+code Del: spam -- https://master.php.net/note/delete/75258/spam Del: non-english -- https://master.php.net/note/delete/75258/non-english Del: in docs -- https://master.php.net/note/delete/75258/in+docs Del: other reasons-- https://master.php.net/note/delete/75258 Reject -- https://master.php.net/note/reject/75258 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126778) next »