Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Generate task fails if file is not an image #268

Open
hachecode opened this issue Jan 18, 2019 · 1 comment
Open

Generate task fails if file is not an image #268

hachecode opened this issue Jan 18, 2019 · 1 comment

Comments

@hachecode
Copy link

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.

@davidyell
Copy link
Owner

Thanks for letting me know!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants