First of all, I just love your class. It is very clear and easy to use. But I have a question: Is it possible to resize the canvas of images that are smaller than the given Thumbsize setting? This is my code: Thumbnails.php <?php if (isset($_REQUEST['thumb'])) { $thumb = new easyphpthumbnail; } ?> And in the actual page I have this code: <?php include ('header.php'); //main variabelen $query = "SELECT image, titel FROM jma_images WHERE xtra_id = '2'"; echo ''; while ($obj=mysql_fetch_object($resultaat)) { echo ' // als het aantal items per rij bereikt is, ga dan naar de volgende rij. $teller++; if ($teller%$items_per_row==0){ echo ''; include ('footer.php'); ?> Everything is working well, except that the canvas of images with an actual size smaller than the given Thumbsize is not enlarged and in my case it should be, because I want to have all thumbs shown in an exact same square. |
|||

Enlarging images
Thanks for your feedback, I think the solution to the problem can be found in the following parameter:
$thumb -> Inflate = true;
This will enlarge images which are smaller than the thumbsize setting. Standard it is set to false as enlarging images often leads to bad quality images but in your case the images are very small so it should not be a problem.