IMAGE

Image 다루기 Gitpage를 운영하다보니 Card 이미지에 나오는 이미지 크기를 균일하게 다룰 필요가 있어 찾아본 방법 Library python3 기준 pip install Pillow Pillow 내 PIL library를 이용 할 것이다. How to import glob # file List imglist = glob.glob("D:/GithubPages/images/*.png") img = Image.open(imglist[0]) print(img.size) # (400,250) tuple 형태로 출력. 즉, 나중에 Resizing 을 할때도 Tuple로 입력. img.show() # 이미지 확인 img.resize((100,10)).show() # Resizing 이후 다시 확인 for ..
J_Today
'IMAGE' 태그의 글 목록