반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Python
- SQL
- c#
- Mac
- numpy
- Excel
- Github
- dataframe
- list
- google apps script
- string
- hive
- array
- GIT
- matplotlib
- Java
- math
- Google Spreadsheet
- Apache
- PANDAS
- Kotlin
- Tkinter
- Google Excel
- gas
- PostgreSQL
- Redshift
- django
- PySpark
- 파이썬
Archives
- Today
- Total
목록PIL (5)
달나라 노트
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/oRhJ6/btq1z5e2pma/kfCR3ha8CcBDrGkO1tFn31/img.png)
image를 ASCII character를 이용한 그림으로 변환할 수 있습니다. 변환할 image인 apple.png는 다음과 같습니다. apple 로고를 변환해볼게요. import PIL.Image # list of ascii characters used when convert image to ascii text list_ascii_chars = ['@', '#', 'S', '%', '?', '*', '+', ';', ':', ',', '.'] # resize image according to a new width def resize_image(pil_obj_image, new_width): width, height = pil_obj_image.size # obj_image = image object ..
Python/Python ETC
2021. 4. 1. 03:06