mrseanryan / image-classifier-ts

:camera: Command line tool to auto-classify images, renaming them with appropriate address and labels. Uses Node.js and the Google Geocoding and Vision APIs.
MIT License
6 stars 0 forks source link

Some images fail to be resized (sharp or image-size) #74

Open mrseanryan opened 2 years ago

mrseanryan commented 2 years ago

Some images fail to be resized (sharp or image-size)

error with file D:\Dropbox\Camera Uploads\2021\2021-10-23 14.42.04.jpg [Error: VipsJpeg: Invalid SOS parameters for sequential JPEG
VipsJpeg: out of order read at line 0
]
[Error: VipsJpeg: Invalid SOS parameters for sequential JPEG
VipsJpeg: out of order read at line 0
]
DP: error occurred
mrseanryan commented 2 years ago

WORKAROUND:

Now, sorting the images gives a list like:

original1.jpg
original1-{classfication}.jpg

original2.jpg
original2-{classfication}.jpg
...
originalN.jpg
originalN-{classfication}.jpg