'Unable to upload tiff images in Laravel

Tried to upload .tiff images using Laravel. used intervention/image for the image upload. it's not worked.shows this message. Unsupported image type image/tiff. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files.

public function uploadmage($catId,$file)
    {
        $diskName = 'public';
        $disk = Storage::disk($diskName);
        $path = $file->store('uploads/catalog/' . $catId, $diskName);
        $fileName = basename($path);

        $image['img_name'] = time() . '.' . $file->getClientOriginalExtension();

        $destinationPath = storage_path('app/public/uploads/catalog/' . $catId);
        $img = Image::make($file->getRealPath());

        $img->resizeCanvas($dimension, '450', 'center', false, '#FFFFFF');

        $img->save($destinationPath . '/' . $image['img_name']);

    }



Solution 1:[1]

It clearly says that gd driver does not support tiff format. Maybe you should use Imagick driver. Here shows how to do it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ronodip Basak