From:             bobkellock at gofast dot co dot uk
Operating system: Win XP SP2
PHP version:      5.2.12
PHP Bug Type:     GD related
Bug description:  Undocumented and unintended? behaviour

Description:
------------
PHP version is actually 5.2.10 which is what is run on the server at
One.com but is due to be upgraded to 5.3 on 2010-01-04.

imagecreatefromjpeg and other imagecreatefromxxx functions put up "Image"
in a small rectangle on the centre of the screen.

This is unsightly in my application which simply creates the image and
overlays it with some text using imagestring followed by writing the
overlaid image to a file. i.e. the original or overlaid image is never
written to the screen.

Bob Kellock

Reproduce code:
---------------
   header('Content-Type: image/jpg');
   $serial = "CL1949F";  // normally passed as a session variable
   $img = imagecreatefromjpeg('blankorder.jpg');
   $textcolour = imagecolorallocate($img, 0, 0, 0);
   $font = imageloadfont('Arial24.gdf');
   imagestring($img, $font, 535, 312, $serial, $textcolour);
   imagejpeg($img,'orderform.jpg');
   imagedestroy($img);
   header('refresh: 0; url=stamped.html');  // redirect to new page


Expected result:
----------------
Creation of overlaid file - which works OK.
Screen should be blank. 

Actual result:
--------------
"Image" in a small rectangle is displayed

-- 
Edit bug report at http://bugs.php.net/?id=50535&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50535&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50535&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50535&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50535&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50535&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50535&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50535&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50535&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50535&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50535&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50535&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50535&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50535&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50535&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50535&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50535&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50535&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50535&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50535&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50535&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50535&r=mysqlcfg

Reply via email to