mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-17 04:36:57 +00:00
updated
This commit is contained in:
parent
02c8acf01b
commit
f850bbef4e
7 changed files with 53 additions and 18 deletions
BIN
scripts/tests/banner.png
Normal file
BIN
scripts/tests/banner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
18
scripts/tests/checkimagesize.py
Normal file
18
scripts/tests/checkimagesize.py
Normal 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()
|
||||
|
BIN
scripts/tests/favicon.png
Executable file
BIN
scripts/tests/favicon.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Loading…
Add table
Add a link
Reference in a new issue