Igor Simic
2 years ago

How to fix Unsupported image type. GD driver is only able to decode JPG, PNG, GIF or WebP files error in Laravel


In this article i will show you one of the reason why the error "Unsupported image type. GD driver is only able to decode JPG, PNG, GIF or WebP files" is popping image when using Intervention image in Laravel.

The error could be misleading and it can actually happen when image that you are trying to use is empty or not readable. So, first check is your image used in Image::make($url_of_image) is there and readable.

Another reason could be, if you are using remote image  that it is not downloaded correctly.
More info about this case you can find on this article:
https://floyk.com/en/post/laravel-unsupported-image-type-gd-driver-is-only-able-to-decode-jpg-png-gif-or-webp-files