Hello,
In http://www.brisbanebrass.com/gallery.php I tried resizing the thumbnails directly with Rapid PHP and am left with broken pictures which when clicked still show the big pic in a separate window. I have tried to put everything back as it was and can not find anything different in the gallery.php or imageresize.php files.
Asked support guys at our host for advice and received the following reply.
Hi Broughton
When I go to the following link:
http://www.brisbanebrass.com/imageresiz ... &width=200
I get the following errors:
<br />
<b>Warning</b>: imagecolorallocate(): supplied argument is not a valid Image resource in <b>/home/brisbane/public_html/imageresize.php</b> on line <b>6</b><br />
<br />
<b>Warning</b>: imagesx(): supplied argument is not a valid Image resource in <b>/home/brisbane/public_html/imageresize.php</b> on line <b>7</b><br />
<br />
<b>Warning</b>: imagesx(): supplied argument is not a valid Image resource in <b>/home/brisbane/public_html/imageresize.php</b> on line <b>9</b><br />
<br />
<b>Warning</b>: imagesy(): supplied argument is not a valid Image resource in <b>/home/brisbane/public_html/imageresize.php</b> on line <b>10</b><br />
<br />
<b>Warning</b>: Division by zero in <b>/home/brisbane/public_html/imageresize.php</b> on line <b>17</b><br />
<br />
<b>Warning</b>: imagecreatetruecolor() [<a href='function.imagecreatetruecolor'>function.imagecreatetruecolor</a>]: Invalid image dimensions in <b>/home/brisbane/public_html/imageresize.php</b> on line <b>32</b><br />
<br />
<b>Warning</b>: imagecopyresized(): supplied argument is not a valid Image resource in <b>/home/brisbane/public_html/imageresize.php</b> on line <b>33</b><br />
<br />
<b>Warning</b>: imagejpeg(): supplied argument is not a valid Image resource in <b>/home/brisbane/public_html/imageresize.php</b> on line <b>35</b><br />
<br />
<b>Warning</b>: imagedestroy(): supplied argument is not a valid Image resource in <b>/home/brisbane/public_html/imageresize.php</b> on line <b>36</b><br />
I suggest using the following forum and displaying this problem
viewforum.php?f=4
Can anyone advise on how to deal with this. I am rather new to PHP but can follow directions.
Broughton ( Brisbane Brass webmaster )