Welcome Guest, Not a member yet? Register   Sign In
Image_Lib GD Detection Error
#1

[eluser]Unknown[/eluser]
I'm in the process of switching from one server to another (fedora core 6 to ubuntu heron), and I noticed that one of my photo resizing apps was causing some problems going from the old server to the new server.

I'm currently using GD2, and I noticed that the Image_Lib logic is not properly detecting GD version 2.

On the fedora server, the gd_info function returns this for GD Version:
[GD Version] => bundled (2.0.28 compatible)

which gives a value of 228 for $gd_version, which fails the v2_override. On the ubuntu server, I get:
[GD Version] => 2.0 or higher
which 'correctly' gives a value of 2 for $gd_version.

The interesting thing though is that the fedora server was resizing images correctly because it was failing this check, and using the imagecreatetruecolor and imagecopyresampled functions, which properly use the above mentioned functions, whereas the other way created visibly distorted images.

At any rate, I just wanted to post because it seemed like a bug to me (the two GD2 versions resolving differently for the version check).




Theme © iAndrew 2016 - Forum software by © MyBB