PDA

View Full Version : Thumbnail generation error to continue processing images?


skidpics
March 17th, 2009, 01:11 PM
Sometimes, I have thumbnail generation errors such as this:

Error creating thumbnail! Error code: 1

Command:

"/usr/local/bin/mogrify" +profile "*" -size 0x100 -quality 80 -geometry 0x100 '/home/vande11/public_html/skidpics/galleries/data/500/thumbs/mini-american-idol-katrina-darrell-bikini-2.jpg'

With that, how can we get the script to delete the bad image and keep processing the rest of the photos instead of stopping there and leaving the user to guess on what to do next?