Ask a Question related to PHP Notes, Design and Development.
-
office@4point-webdesign.com #1
note 33821 added to function.imagecreatefromjpeg
Here's the answer for your 256 color only problem!!!
use these functions in order then it works fine!
$img_src=imagecreatefromjpeg('yoursource.jpg');
$img_dst=imagecreatetruecolor(20,20);
imagecopyresampled($img_dst, $img_src, 0, 0, 0, 0, 20, 20, 20, 20);
imagejpeg($img_dst, $g_dstfile, 100);
imagedestroy($img_dst);
Greetz, GTB
----
Manual Page -- [url]http://www.php.net/manual/en/function.imagecreatefromjpeg.php[/url]
Edit Note -- [url]http://master.php.net/manage/user-notes.php?action=edit+33821[/url]
Delete Note -- [url]http://master.php.net/manage/user-notes.php?action=delete+33821&report=yes[/url]
Reject Note -- [url]http://master.php.net/manage/user-notes.php?action=reject+33821&report=yes[/url]
office@4point-webdesign.com Guest
-
note 33827 added to function.function-exists
This can be used to conditionally define a user function. In this sense, it can act as a sort of inline include_once(). For example, suppose you... -
note 33730 added to function.min
Caution : it seems that min() can return a string : min(";",50)=";" (I expected zero) ---- Manual Page --... -
note 33727 added to function.is-int
To Logan: There's also a simple non-regexp way to convert a (form) value into an integer if it consists of numbers only - although with a trap... -
note 33714 added to function.register-tick-function
please can anyone help me to discover if this function can be used to make a chat ---- Manual Page --... -
note 33575 added to function.register-shutdown-function
If your script exceeds the maximum execution time, and terminates thusly: Fatal error: Maximum execution time of 20 seconds exceeded in - on line...



Reply With Quote

