I have a problem with image resizing using GD and PHP.
I have a function that recieves an uploaded file, resizes it and puts it in a dir on the server.
$im = imagecreatefromjpeg($fname_temp) or die("Error creating image");
$obr_x = (int) ( ImageSX($im) ($img_data['percent']/100) );
$obr_y = (int) ( ImageSY($im) ($img_data['percent']/100) );
$dst_img = imagecreate($obr_x, $obr_y);
ImageCopyResized($dst_img, $im, 0, 0, 0, 0, $obr_x, $obr_y, ImageSX($im), ImageSY($im));
Imagejpeg($dst_img, $url_upload.$fname_upload);
This was working before the hosting company upgraded their servers to RH7.3 (from 7.1 i think) but now the images appear washed out and lacking in brightness.
This is affecting all sites using GD on this hosting company and appears to be the result of their upgrade but they aren't acknowledging this.
The GD libs used are reported as 2.0+
The PHP version is 4.2.3
The Linux kernel is 2.4.19
Apache version is 1.3.26
Are there any known bugs regarding this issue?
Any help with this would be much appreciated
Thanks, Mike.