URGENT!! Corrupt 16x16 png icon file with GD!
Posted: Wed Oct 27, 2010 11:35 pm
Hey,
Having a problem with GD loading a 16x16px image and outputting to the browser, yet with other images of the same size it works fine, it's also GD version related because offline on my test server it works fine, online no.
Online server GD version: bundled (2.0.34 compatible)
Offline test server GD version: 2.0 or higher
Here's some test code I'm using, literally opens the file and outputs to the browser:
Images:
Please could someone help out with this, would be great.. going nuts over this problem!
Having a problem with GD loading a 16x16px image and outputting to the browser, yet with other images of the same size it works fine, it's also GD version related because offline on my test server it works fine, online no.
Online server GD version: bundled (2.0.34 compatible)
Offline test server GD version: 2.0 or higher
Here's some test code I'm using, literally opens the file and outputs to the browser:
Code: Select all
header('Content-Type: image/png');
$img = imagecreatefrompng('page_white.png');
imagepng($img);
Please could someone help out with this, would be great.. going nuts over this problem!