resizeToWidth(100); // Save thumbnail image $thumb->save('thumbnail.jpg'); ?>
crop(100, 100); // Save thumbnail image $thumb->save('thumbnail.jpg'); ?>In this example, we are using the `crop` method to resize the image to 100x100 pixels and save it as a thumbnail image. In conclusion, PHP Image thumb is an easy-to-use package library that allows the user to generate thumbnail images from their original images using different resize methods. The `Gumlet` package is used in the examples above.