[geeklog-users] gdlib oddness

John Matthews jvm at linuxgames.com
Fri Jul 9 22:33:55 EDT 2004


I have gdlib for image resizing turned on in config.php. I have verified
with phpinfo that gd is installed (2.0.23, bundled) and has jpeg, gif,
png abilities.

Image resizing wasn't happening, so I turned on logging to error.log and
this is what I see when trying to upload a PNG image called
dotc-021.png. Note that the image size returned from _getImageDimensions
is apparently NULL or something like that.

Fri Jul  9 20:28:53 2004 - Debug: File size for dotc-021.png is 15465
bytes
Fri Jul  9 20:28:53 2004 - Debug: File, dotc-021.png is of mime type
image/png and IS an image file.
Fri Jul  9 20:28:53 2004 - Debug: in _getImageDimensions I got a width
of , and
a height of
Fri Jul  9 20:28:53 2004 - Debug: Max allowed width = 200, Image width =
Fri Jul  9 20:28:53 2004 - Debug: Max allowed height = 160, Image height
=
Fri Jul  9 20:28:53 2004 - Debug: File, dotc-021.png has a width of  and
a height of
Fri Jul  9 20:28:53 2004 - Debug: File, dotc-021.png is of mime type
image/png and IS an image file.
Fri Jul  9 20:28:53 2004 - Debug: in _getImageDimensions I got a width
of , and
a height of
Fri Jul  9 20:28:53 2004 - Debug: Max allowed width = 200, Image width =
Fri Jul  9 20:28:53 2004 - Debug: Max allowed height = 160, Image height
=
Fri Jul  9 20:28:53 2004 - Debug: File, dotc-021.png has a width of  and
a height of

Is this a permissions problem? (I.e. not able to read the image and get
its size?)

Is this a gd problem? (Somehow misconfigured, either in Geeklog or
elsewhere?)

Or is it something else altogether?

Thanks for any and all help you can provide.

Regards,
matt




More information about the geeklog-users mailing list