mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-17 12:46:58 +00:00
18 lines
420 B
Python
18 lines
420 B
Python
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()
|
|
|