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

Improve tolerance of corrupted image files #253

Open
nathanielrindlaub opened this issue Aug 21, 2024 · 1 comment
Open

Improve tolerance of corrupted image files #253

nathanielrindlaub opened this issue Aug 21, 2024 · 1 comment
Labels
bug Something isn't working easy-lift

Comments

@nathanielrindlaub
Copy link
Member

Corrupted images fail if they ever get loaded by sharp (e.g. in the _getImage() function of src/ml/modelInterfaces.ts. The key I think is to set the Sharp config to failOn: 'none'. We did this in animl-ingest and it seemed to do the trick.

@nathanielrindlaub nathanielrindlaub added the bug Something isn't working label Aug 21, 2024
@nathanielrindlaub
Copy link
Member Author

We should do this anywhere we use sharp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working easy-lift
Projects
None yet
Development

No branches or pull requests

1 participant