Re: [PHP] How creat image pointer from JPG/GIF string?
Robert Cummings wrote: > M wrote: > > > > I have stored lot of images into BLOB Mysql fields, and need recover it > > to resize. How can I create some image pointer from string stored into > > BLOB field? > > > > Thanks > > > > Miguel > > imagecreatefromstring() seems to be the candidate... however a comment > attached to the help page indicates it is buggy. I suggest trying it out > and if that fails then pull your image from the database, write to a > temporary file, and then use imagecreatefromjpeg() as per usual. > > Cheers, > Rob. Hello Rob, just to inform that function ImageCreateFromString works ok Thanks for your valuable info Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How creat image pointer from JPG/GIF string?
Robert Cummings wrote: > M wrote: > > > > I have stored lot of images into BLOB Mysql fields, and need recover it > > to resize. How can I create some image pointer from string stored into > > BLOB field? > > > > Thanks > > > > Miguel > > imagecreatefromstring() seems to be the candidate... however a comment > attached to the help page indicates it is buggy. I suggest trying it out > and if that fails then pull your image from the database, write to a > temporary file, and then use imagecreatefromjpeg() as per usual. > > Cheers, > Rob. ops!, thanks Rob, it appears my PHP local manual is old version. I checked around the net and really this function exists. I am going to checkt it now. Thanks again Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How creat image pointer from JPG/GIF string?
M wrote: > > Hello, you know all GD functions work via image pointer , which appoints > to some file, or else empty image > > $img_pointer = imagecreatefromjpeg("$image_file_name"); > > or > > $img_pointer = imagecreate($width,$height); > > I have stored lot of images into BLOB Mysql fields, and need recover it > to resize. How can I create some image pointer from string stored into > BLOB field? > > Thanks > > Miguel imagecreatefromstring() seems to be the candidate... however a comment attached to the help page indicates it is buggy. I suggest trying it out and if that fails then pull your image from the database, write to a temporary file, and then use imagecreatefromjpeg() as per usual. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109 | :--: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `--' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php