Initial commit
This commit is contained in:
9
scratch/get_dimensions.py
Normal file
9
scratch/get_dimensions.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from PIL import Image
|
||||
|
||||
def get_dimensions(path):
|
||||
img = Image.open(path)
|
||||
print("Mode:", img.mode)
|
||||
print("Size:", img.size)
|
||||
|
||||
if __name__ == "__main__":
|
||||
get_dimensions("public/images/slider-courier-mask-purple.png")
|
||||
Reference in New Issue
Block a user