Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Script to check how many images are broken

statfile = os.stat(filename)
filesize = statfile.st_size
if filesize == 0:
  #manage here the 'faulty image' case
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #Script #check #images #broken
ADD COMMENT
Topic
Name
5+8 =