[geeklog-devel] Image resizing with gdlib
Dirk Haun
dirk at haun-online.de
Mon Oct 11 15:27:30 EDT 2004
Tom,
>I was playing with the automatic image resizing using gdlib this morning and
>noticed something wrong.
>
>The image resize works correctly but the link in the article is wrong. The
>image is converted to png but the article points to the picture as a gif.
>The image is correctly converted to png and resized and resides in the image
>directory, the link is simply wrong.
Ignoring for the moment that, using the current CVS version, it doesn't
seem to work at all (at least not for userphotos with gdlib):
The problem is that on the "client" side (usersettings.php and admin/
story.php), the code still expects the upload class to return .gif files
- it doesn't know about the PNG conversion and there doesn't seem to be a
way to get the actual file names back.
Which would also explain why the userphotos aren't working, as it's doing
a file_exists() there before adding the file name to the database.
One has to wonder if the PNG conversion makes sense anymore, now that the
LZW patent has finally expired world-wide ...
bye, Dirk
--
http://www.haun-online.de/
http://mypod.de/
More information about the geeklog-devel
mailing list