Is it possible to create thumbnails in PHP without using the GD-Lib?

Creating thumbnails in PHP without using the GD-Lib can be achieved by using the Imagick extension, which is an alternative to GD for image manipulation. Imagick provides similar functionality for image processing and can be used to generate thumbnails with ease.

// Check if Imagick extension is available
if (extension_loaded('imagick')) {
    // Load the original image
    $image = new Imagick('original_image.jpg');
    
    // Create a thumbnail with specific dimensions
    $image->thumbnailImage(100, 100);
    
    // Save the thumbnail image
    $image->writeImage('thumbnail_image.jpg');
    
    // Destroy the image object
    $image->destroy();
} else {
    echo 'Imagick extension is not available.';
}