SilverBlade86 Posted February 10, 2008 Share Posted February 10, 2008 I currently have a RegenThumbnails function, which basically scans all directories and subdirectories in a Photo Directory, and creates thumbnails for each and every photo in there, using ImageCreateTrueColor, ImageCopyResized, etc. However, sometimes the photos I have are corrupted, and it outputs error messages as well as a black thumbnail. Now, how can I implement a function which would scan the JPEG files for any signs of corruption, and stop it from being processed? That way I can create another function which would delete all corrupted JPEG files if encountered, as well as still generating thumbnails for the ones that still do work. Thanks. Link to comment https://forums.phpfreaks.com/topic/90299-scanning-for-jpeg-corruption-using-php/ Share on other sites More sharing options...
SilverBlade86 Posted February 14, 2008 Author Share Posted February 14, 2008 Bump. Link to comment https://forums.phpfreaks.com/topic/90299-scanning-for-jpeg-corruption-using-php/#findComment-466470 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.