Popular Posts
Most visited articles this period
Latest Posts
Fresh thoughts and recent updates from the blog
tistory view
728x90
반응형
파이썬에서 이미지 사이즈 조절해서 띄우는 방법
!pip install pillow
from PIL import Image
image = Image.open("boxPlot.png")
# 최대 크기를 (500, 500)으로 제한 (비율 유지)
image.thumbnail((500, 500))
image

728x90
반응형
'Dev > Python' 카테고리의 다른 글
| [오류해결] raise OSError(f"cannot write mode {im.mode} as JPEG") from eOSError: cannot write mode RGBA as JPEG (1) | 2024.07.02 |
|---|---|
| [python] 현재 디렉토리에 있는 이미지파일 목록 리스트로 가져와서 읽기 (0) | 2024.06.27 |
| [pymongo] pymongo MongoClient 데이터베이스, 컬렉션명 출력하기 (0) | 2024.06.26 |
| [Python] 파이썬에서 진행률(progress 바) 출력하는 방법 (42) | 2024.01.08 |
| python3.x 원하는 버전의 pip 설치하기 (0) | 2023.09.01 |
Comments