Msg#: 3817688 posted 7:05 am on Jan 2, 2009 (gmt 0)
I'm trying to create thumbnails for my website but I'm having a problem. When I use imagesx it keeps telling me "Warning: imagesx(): supplied argument is not a valid Image resource in ... on line 13". This is my code:
Msg#: 3817688 posted 9:56 am on Jan 2, 2009 (gmt 0)
I've already read the documentation yesterday evening, but now I really focused ;-) I guess I have to add the following code to make it work: $basedir = "/home/blabla/public_html/blabla/"; $oSourceImage = $basedir."308.jpg"; $img = ImageCreateFromJpeg($oSourceImage); $nWidth = imagesx($img); $nHeight = imagesy($img);
I will check it out later on today. Thanks (again) for your help coopster!