One way to 'verify' the data is to decode the file. The following command will try to convert the JPG into PNM, but will not actually write the output file. If an error occurs, it'll be printed. E.g. for an intentionally corrupted file: kofa@eagle:~$ convert /tmp/test.jpg -format pnm - >/dev/null convert-im6.q16: Corrupt JPEG data: premature end of data segment `/tmp/test.jpg' @ warning/jpeg.c/JPEGWarningHandler/386.
You can get 'convert' from ImageMagick or from GraphicsMagick. Kofa ____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to [email protected]
