[MBT] new entry in pkg php "problems with imagecopyresampled"

bugs at pld-linux.org bugs at pld-linux.org
Thu Dec 25 12:44:51 CET 2003


Date: 2003-12-25 12:44:50+01	Author: Adam Gołębiowski (adamg) <adamg at biomerieux.pl> 
Title:         problems with imagecopyresampled
Ticket ID:     #800
Ticket URL:    http://bugs.pld-linux.org/?bug=800
Package:       php-3:4.2.3-9
Distribution:  PLD-1.0.updates.security
Category:      doesn't work as it should
Current state: opened
Text:

Quoting comments on http://pl.php.net/imagecopyresampled:

===== Quote

# if you using an old gd-version  (4.2.x php+bundle)
# imagecopyresampled doesn't work correct because
# the src_x and src_y values are ignored.

# here is a (bum-bum) solution to solve this
# problem without fixing it ( ;

# first, copy the part you want into a temporary image
# at position 0,0
 imagecopy ($tmp_img, $img,0,0,$posx,$posy, $sizex,$sizey);

# than use another image to copy and resample it,
# to get a larger/smaller version of it
 imagecopyresampled ($img_new,$tmp_img,0,0,0,0,$new_sizex, $new_sizey, $sizex,$sizey);

# and than you can use it in your own image
 imagecopymerge ($my_img,$img_new,
$myposx,$myposy,0,0,$new_sizex,$new_sizey,$alpha_value);

===== End Of Quote

However, there were some significant changes in 4.3.x - like some moves in extensions (some removed, some moved to PECL), or few functions were renamed or their behaviour was changed. 

In my opinion PHP 4.3 shouldn't go to RA. Or, at least, not into updates/security or updates/general. Maybe somewhere else (updates/{other,supported,contrib} ?). 

I guess we can ignore this bug...



More information about the pld-bugs mailing list