CakePHP-Proffer icon indicating copy to clipboard operation
CakePHP-Proffer copied to clipboard

Generate task fails if file is not an image

Open hachecode opened this issue 6 years ago • 1 comments

When using the "regenerate thumbnails" command from shell: bin/cake proffer generate table

I get an exception, and execution breaks: Exception: Unsupported image type. GD driver is only able to decode JPG, PNG, GIF or WebP files.

I solved it by checking if file is an image before trying to convert.

hachecode avatar Jan 18 '19 12:01 hachecode

Thanks for letting me know!

davidyell avatar Jan 18 '19 15:01 davidyell