Page 1 of 1
How to check for corrupt jpgs
Posted: Wed Mar 14, 2012 4:22 pm
by scott47303
Say i have a directory of jpeg files, how would i go about to make sure they are valid. I am completely lost when it comes to this.
Re: How to check for corrupt jpgs
Posted: Wed Mar 14, 2012 4:41 pm
by Klaus
Hi Scott,
you could set the filename of an image to any jpeg and check "the result" immediately after that.
But I am not sure if LiveCode will complain at all when doing so...
I would use a player object, set its filename and let QuickTime report an error if any, I am sure that will work.
Maybe you could check the file directly, but I have no idea about this binary stuff
Best
Klaus