Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error: Input file contains unsupported image format" with Git LFS and Vercel #215

Closed
naavis opened this issue Oct 24, 2020 · 0 comments
Closed

Comments

@naavis
Copy link

naavis commented Oct 24, 2020

I'm building a website which uses next-optimized-image pretty heavily to resize and optimize images.

My builds were working fine locally, but failing on Vercel with the message Error: Input file contains unsupported image format popping up for every image. After a long evening of furious googling and debugging, it turns out the problem is I am using Git LFS to store large images in my Git repo, and Vercel does not support Git LFS yet. The image files next-optimized-images sees are just placeholders instead of the actual image files.

There is probably noting next-optimized-images can do about this issue, but I wanted to document it here so no one else has to bang their head against the wall as long as I did.

@naavis naavis closed this as completed Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant