Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A command-line tool for converting alpha channels to normal maps.
## Usage

```bash
python Paramal.py <input> <output> [options]
Paramal <input> <output> [options]
```

### Options
Expand All @@ -31,19 +31,19 @@ python Paramal.py <input> <output> [options]

```bash
# Basic conversion
python Paramal.py input.png output.png
Paramal input.png output.png

# Custom strength with DirectX mode
python Paramal.py input.png output.png -s 3.0 -m dx
Paramal input.png output.png -s 3.0 -m dx

# Use the original 4-neighbor sampling method
python Paramal.py input.png output.png -o simple
Paramal input.png output.png -o simple

# Use the Scharr operator
python Paramal.py input.png output.png -o scharr
Paramal input.png output.png -o scharr

# Mix with original image and scale up
python Paramal.py input.png output.png --mix --scale 4
Paramal input.png output.png --mix --scale 4
```

## Dependencies
Expand All @@ -56,5 +56,5 @@ pip install Pillow numpy

```bash
pip install Pillow numpy PyInstaller
python -m PyInstaller --onefile --name Paramal --icon logo.ico Paramal.py
python -m PyInstaller --onefile --name Paramal --icon logo.ico Paramal.py README.md README_CN.md
```
14 changes: 7 additions & 7 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
## 使用方法

```bash
python Paramal.py <输入路径> <输出路径> [选项]
Paramal <输入路径> <输出路径> [选项]
```

### 选项
Expand All @@ -31,19 +31,19 @@ python Paramal.py <输入路径> <输出路径> [选项]

```bash
# 基础转换
python Paramal.py input.png output.png
Paramal input.png output.png

# 自定义强度并使用 DirectX 模式
python Paramal.py input.png output.png -s 3.0 -m dx
Paramal input.png output.png -s 3.0 -m dx

# 使用最原始的上下左右采样方式
python Paramal.py input.png output.png -o simple
Paramal input.png output.png -o simple

# 使用 Scharr 算子
python Paramal.py input.png output.png -o scharr
Paramal input.png output.png -o scharr

# 与原图混合并放大
python Paramal.py input.png output.png --mix --scale 4
Paramal input.png output.png --mix --scale 4
```

## 依赖
Expand All @@ -56,5 +56,5 @@ pip install Pillow numpy

```bash
pip install Pillow numpy PyInstaller
python -m PyInstaller --onefile --name Paramal --icon logo.ico Paramal.py
python -m PyInstaller --onefile --name Paramal --icon logo.ico Paramal.py README.md README_CN.md
```