note 69272 added to function.imagecreatefromjpeg
| From: | info at daleconsulting dot com dot au | Date: | Tue, 29 Aug 2006 13:34:42 +0000 |
| Subject: | note 69272 added to function.imagecreatefromjpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116472@lists.php.net to get a copy of this message | ||
In a post by Angel Leon, an example script was given that forms a thumbnail gallery using
imagecreatefromjpeg. I am fairly new to php scripts, but I found that the script did not display
the table of thumbnail images if the row wasn't "filled" with images.. i.e. if there
were 5 images in the folder and the script specified 3 rows in the table, then the page would only
display the thumbnails for the first row and only three images were shown. I found that if you
specified the variable row with this equation, then the table would display properly:
$row = intval(count($files)+($row_size-1));
(This is the first line in the createThumbTable function.)
----
Server IP: 203.202.10.60
Probable Submitter: 138.130.164.155
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php
Edit -- https://master.php.net/note/edit/69272
Del: integrated -- https://master.php.net/note/delete/69272/integrated
Del: useless -- https://master.php.net/note/delete/69272/useless
Del: bad code -- https://master.php.net/note/delete/69272/bad+code
Del: spam -- https://master.php.net/note/delete/69272/spam
Del: non-english -- https://master.php.net/note/delete/69272/non-english
Del: in docs -- https://master.php.net/note/delete/69272/in+docs
Del: other reasons-- https://master.php.net/note/delete/69272
Reject -- https://master.php.net/note/reject/69272
Search -- https://master.php.net/manage/user-notes.php