Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Corrupt Image prevents viewing entire dataset #240

Open
AustinShalit opened this issue Jun 29, 2021 · 2 comments
Open

Corrupt Image prevents viewing entire dataset #240

AustinShalit opened this issue Jun 29, 2021 · 2 comments

Comments

@AustinShalit
Copy link
Member

[1] TypeError: Corrupt JPG, exceeded buffer limits
[1]     at validateBuffer (/usr/src/app/node_modules/image-size/dist/types/jpg.js:77:15)
[1]     at Object.calculate (/usr/src/app/node_modules/image-size/dist/types/jpg.js:101:13)
[1]     at lookup (/usr/src/app/node_modules/image-size/dist/index.js:35:49)
[1]     at Function.imageSize (/usr/src/app/node_modules/image-size/dist/index.js:109:16)
[1]     at /usr/src/app/packages/server/src/datasources/dataset-service.ts:169:38
[1]     at Array.map (<anonymous>)
[1]     at DatasetService.listImages (/usr/src/app/packages/server/src/datasources/dataset-service.ts:167:20)
[1]     at DatasetService.getDatasetImages (/usr/src/app/packages/server/src/datasources/dataset-service.ts:80:16)

image

@GrantPerkins
Copy link
Member

Probably should remove that image from the dataset. Or even better, check validity of images during the dataset creation process. Or both.

@GrantPerkins
Copy link
Member

The Python Imaging Library believes these "corrupt" images are valid. Ran im.verify(), no issues found.

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

No branches or pull requests

2 participants