What are some alternative methods to create thumbnails of images in PHP without using GD-Lib?

When GD-Lib is not available or not preferred for creating thumbnails of images in PHP, an alternative method is to use the Imagick extension. Imagick is a PHP extension that allows for image manipulation and processing, including the creation of thumbnails.

// Load the image file
$image = new Imagick('image.jpg');

// Resize the image to create a thumbnail
$image->thumbnailImage(100, 100);

// Save the thumbnail to a new file
$image->writeImage('thumbnail.jpg');

// Destroy the image object to free up memory
$image->destroy();