Edit report at http://bugs.php.net/bug.php?id=54482&edit=1
ID: 54482 User updated by: info822 at freshsoftware dot net Reported by: info822 at freshsoftware dot net Summary: imagecreatefromstring fails -Status: Feedback +Status: Assigned Type: Bug Package: GD related Operating System: Fedora 13 (Godard) Kernel Linux PHP Version: 5.3.6 Assigned To: pajoye Block user comment: N Private report: N New Comment: Unfortunately your code does not work. Look at test1 & test2.php at: http://thewordsmith.dyndns.info/test/ Notice that a2.png is not created in: http://thewordsmith.dyndns.info/link_to_tmp/ Test 2 is a short version of my own code. I will email you the SSH info and you can go at it. The PHPINFO for my dev box is available at: http://thewordsmith.dyndns.info/php/ Previous Comments: ------------------------------------------------------------------------ [2011-04-07 23:29:56] paj...@php.net Well, as I said, the code works. If for some reason it does not work on another server, then you have to verify its configuration. Have you tried my example on the dev server? Or any other where you met this bug? ------------------------------------------------------------------------ [2011-04-07 22:52:08] info822 at freshsoftware dot net file_get_contents is apparently not reading the entire file. ------------------------------------------------------------------------ [2011-04-07 22:48:29] info822 at freshsoftware dot net You couldnot reporduce the error because you apparently only looked at the live server. Please look at the DEV server. http://thewordsmith.dyndns.info/resize_event_pic.php?event_num=27&new_width=100&new_height=143 ------------------------------------------------------------------------ [2011-04-07 21:59:38] paj...@php.net Cannot reproduce. Here is a simple script: <?php $file = 'https://secure20.nexcess.net/thewordsmith.info/images/event_images/2010-11- 20/The%20Lake%20Effect%20Festival/Lake%20Effect%20Hip%20Hop%20Flyer.jpg'; imagepng(imagecreatefromjpeg($file), 'a1.png'); imagepng(imagecreatefromstring(file_get_contents($file)), 'a2.png'); a1 and a2 are just fine. Please try this script as well. ------------------------------------------------------------------------ [2011-04-07 17:52:54] info822 at freshsoftware dot net A list off all the rpms installed on my system can be viewed at: http://thewordsmith.dyndns.info/rpms_installed.txt ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=54482 -- Edit this bug report at http://bugs.php.net/bug.php?id=54482&edit=1