- (w,h) = get_png_picture_resolution(pic_name)
- sizesw.append(w)
- sizesh.append(h)
-
-# check sizes of pictures: width
-if abs(max(sizesw)-min(sizesw)) > 0:
- print "<b>ERROR!!! Pictures have different width !!!</b>";
- for i in range(1,11):
- picture_name = "time_stamp_"+str(i)+"."+pictureext
- print "Picture: "+picture_name+"; width : "+str(sizesw[i-1])
- raise RuntimeError
-
-# check sizes of pictures: height
-if abs(max(sizesh)-min(sizesh)) > 0:
- print "<b>WARNING!!! Pictures have different height !!!</b>";
- for i in range(1,11):
- picture_name = "time_stamp_"+str(i)+"."+pictureext
- print "Picture: "+picture_name+"; height : "+str(sizesh[i-1])
- raise RuntimeError