Skip to content

Nunuscloud/pixterm-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎨 Pixterm

Pixterm은 이미지λ₯Ό ν„°λ―Έλ„μš© ANSI/ASCII μ•„νŠΈλ‘œ λ³€ν™˜ν•˜λŠ” 파이썬 기반 μœ ν‹Έλ¦¬ν‹°μž…λ‹ˆλ‹€.
PNG, JPG, WEBP λ“± μ–΄λ–€ 이미지든 터미널 μ•ˆμ—μ„œ 컬러 ν”½μ…€μ²˜λŸΌ μ‹œκ°ν™”ν•  수 μžˆμŠ΅λ‹ˆλ‹€.


πŸ’» λΉ λ₯Έ μ‹€ν–‰ μ˜ˆμ‹œ

🐚 macOS / Linux

make run examples/your_image.png
# λ˜λŠ” κ°€λ‘œ 폭 쑰절 μ‹œ
make run examples/your_image.png w=160

πŸͺŸ Windows

  • PowerShell ν„°λ―Έλ„μ—μ„œ μ‹€ν–‰
.\run.ps1 demo
# λ˜λŠ”
.\run.ps1 run examples/your_image.png
# κ°€λ‘œ 폭 μ‘°μ ˆλ„ 지원
.\run.ps1 run examples/your_image.png w=160

🌈 μ£Όμš” νŠΉμ§•

  • πŸ–ΌοΈ 이미지 β†’ ANSI/ASCII λ³€ν™˜
    • ν”½μ…€μ˜ λͺ…암값을 문자둜 λ³€ν™˜ν•˜μ—¬ ν„°λ―Έλ„μ—μ„œ μ‹œκ°μ μœΌλ‘œ ν‘œν˜„
  • 🎨 TrueColor(24-bit ANSI 컬러) μ™„λ²½ 지원
    • iTerm2, macOS Terminal, Windows Terminal λ“± ν˜Έν™˜
  • βš™οΈ κ°„λ‹¨ν•œ CLI μΈν„°νŽ˜μ΄μŠ€
    • 직관적인 μ˜΅μ…˜ 기반 μ œμ–΄
  • πŸ’« 데λͺ¨ λͺ¨λ“œ λ‚΄μž₯
    • 이미지 없이 ν•˜νŠΈ λͺ¨μ–‘ ν…ŒμŠ€νŠΈ κ°€λŠ₯ (--demo)

πŸš€ μ„€μΉ˜ 및 μ‹€ν–‰

1️⃣ λ ˆν¬μ§€ν† λ¦¬ 클둠

git clone https://github.com/pixterm.git
cd pixterm-cli

2️⃣ μ˜μ‘΄μ„± μ„€μΉ˜

pip install -r requirements.txt

βš™οΈ μ˜΅μ…˜ μš”μ•½

μ˜΅μ…˜ μ„€λͺ…
-i, --image μž…λ ₯ 이미지 경둜
-w, --width 좜λ ₯ κ°€λ‘œ 문자 수 (κΈ°λ³Έκ°’: 120)
--color 24-bit ANSI 컬러 좜λ ₯
--ansi --color의 별칭
--invert λͺ…μ•” λ°˜μ „
--charset 문자 μ„ΈνŠΈ μ§€μ • (κΈ°λ³Έ " .:-=+*#%@")
--demo ν•˜νŠΈ 데λͺ¨ 좜λ ₯

πŸ’‘ ν™œμš© 팁

βœ… 컬러 좜λ ₯ + 파일 μ €μž₯ λ™μ‹œμ—

./pixterm.py -i "./examples/hachuping.webp" --ansi -w 160 | tee output.ansi

βœ… μ»¬λŸ¬κ°€ 깨질 λ•Œ (macOS/iTerm2 λ“±)

export COLORTERM=truecolor

βœ… ANSI 파일 미리보기

cat output.ansi
# λ˜λŠ”
less -R output.ansi

πŸ–ΌοΈ μ˜ˆμ‹œ

μ˜ˆμ‹œ 이미지: ν•˜μΈ„ν•‘ (hachuping.webp)

이 μ΄λ―Έμ§€λŠ” λ‹¨μˆœν•œ 데λͺ¨μš© μ˜ˆμ‹œμž…λ‹ˆλ‹€.
Pixterm은 μ–΄λ–€ 이미지에도 λ™μΌν•˜κ²Œ 적용 κ°€λŠ₯ν•©λ‹ˆλ‹€.

python3 pixterm.py -i "./examples/hachuping.webp" --ansi -w 160

πŸ“Έ μ•„λž˜λŠ” Pixterm으둜 λ Œλ”λ§ν•œ κ²°κ³Ό μ˜ˆμ‹œμž…λ‹ˆλ‹€. (좜λ ₯ μ˜ˆμ‹œ 이미지 / GIF 첨뢀 ꢌμž₯)


πŸ“‚ ν”„λ‘œμ νŠΈ ꡬ쑰

pixterm-cli/
β”œβ”€β”€ pixterm.py
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ examples/
β”‚   └── hachuping.webp
└── README.md

🧰 기술 μŠ€νƒ

  • Python 3.10+
  • Pillow (이미지 처리)
  • ANSI 24-bit TrueColor
  • CLI (argparse)

πŸͺ„ μ˜ˆμ‹œ ν™œμš©

Pixterm은 λ‹¨μˆœν•œ 이미지 좜λ ₯ 도ꡬ가 μ•„λ‹™λ‹ˆλ‹€.

  • 터미널 λ°°κ²½ν™”λ©΄ 효과
  • SSH μ•„νŠΈ 좜λ ₯
  • CLI μ•± λ‘œλ”© μ• λ‹ˆλ©”μ΄μ…˜
  • μ½˜μ†” 기반 μ‹œκ°ν™” ν”„λ‘œμ νŠΈ 등에도 ν™œμš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

πŸ“¦ Repository Info

Description:

Convert any image into beautiful ANSI/ASCII art right in your terminal 🎨
μ–΄λ–€ 이미지든 터미널 μ•ˆμ—μ„œ 컬러 ASCII μ•„νŠΈλ‘œ ν‘œν˜„ν•˜μ„Έμš”.

Topics:
terminal-art, ascii-art, ansi-art, pixel-art, python3, cli-tool, image-to-ascii, terminal, visualization, unicode, color, truecolor


πŸ“„ License

Β© 2025 Nunu Kim

🩡 Bring your pixels to life β€” right inside your terminal.

About

Convert any image into beautiful ANSI/ASCII art right in your terminal 🎨 β€” lightweight Python renderer for pixel lovers.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors