This commit is contained in:
root 2025-01-11 15:16:27 +01:00
parent 02c8acf01b
commit f850bbef4e
7 changed files with 53 additions and 18 deletions

View file

@ -0,0 +1,18 @@
from PIL import Image
def main():
print('[+] checking image size')
im = Image.open("banner.png")
#im = Image.open("favicon.png")
width, height = im.size
print('width =',width, 'height=',height)
if width != 240 or height != 60:
print('[-] Banner doesnt have the correct size (240x60)')
return False
else:
print('[+] Banner has the correct size (240x60)')
return True
if __name__ == '__main__':
main()