mirror of
https://github.com/Cute-Dress/Dress.git
synced 2025-07-28 09:02:03 +00:00
some cleanups
整理文件夹,按首字母分类
This commit is contained in:
29
L/LittleYe233/APPENDIX/python_exif_removal.md
Normal file
29
L/LittleYe233/APPENDIX/python_exif_removal.md
Normal file
@ -0,0 +1,29 @@
|
||||
# LittleYe233/Dress 附录 - 使用 Python 去除图片的 EXIF 信息
|
||||
|
||||
可以使用 `pillow` 模块。
|
||||
|
||||
在终端中执行:
|
||||
|
||||
```bash
|
||||
pip install pillow
|
||||
```
|
||||
|
||||
在 Python 解释器中执行:
|
||||
|
||||
```python
|
||||
from PIL import Image
|
||||
img = Image.open('/path/to/image.jpg')
|
||||
# print(img.size) # 输出图片大小
|
||||
# img.resize(NEW_SIZE) # 调整图片大小
|
||||
img.save('/path/to/new_image.jpg') # 重新保存,此时 EXIF 信息已被去除
|
||||
```
|
||||
|
||||
检查图片的 EXIF 信息:
|
||||
|
||||
```text
|
||||
$ file image.jpg
|
||||
image.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=14, height=4000, bps=0, manufacturer=HUAWEI, model=ART-AL00x, orientation=[*0*], xresolution=200, yresolution=208, resolutionunit=2, software=ARTH-AL00 9.1.1.204(C00E95R3P6), datetime=2021:06:17 21:36:14, width=3000], baseline, precision 8, 3000x4000, components 3
|
||||
|
||||
$ file new_image.jpg
|
||||
new_image.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 3000x4000, components 3
|
||||
```
|
42
L/LittleYe233/APPENDIX/tag_spec.md
Normal file
42
L/LittleYe233/APPENDIX/tag_spec.md
Normal file
@ -0,0 +1,42 @@
|
||||
# LittleYe233/Dress 附录 - 标签定义表
|
||||
|
||||
## Format
|
||||
|
||||
`<field 1>[:<field 2>[:<field 3> ...]]:<value>`
|
||||
|
||||
## Proposal
|
||||
|
||||
<https://github.com/komeiji-satori/Dress/issues/494#issuecomment-1169671405>
|
||||
|
||||
## Reference
|
||||
|
||||
参考 [E-Hentai](https://e-hentai.org) 部分 field/value 命名规则。
|
||||
|
||||
## Supported fields and values
|
||||
|
||||
- `c`/`character`:角色
|
||||
- `emilia`
|
||||
- `minato_aqua`
|
||||
- `rem`
|
||||
- `snow_miku`
|
||||
- `d`/`dressing`:服饰
|
||||
- `breasts`
|
||||
- **值通配符**:尺寸
|
||||
- `collar`:项圈(附加)
|
||||
- `jk`
|
||||
- `lolita`
|
||||
- `maid`
|
||||
- `pantyhose`
|
||||
- **值通配符**:颜色
|
||||
- `school_gym_uniform`
|
||||
- `stockings`
|
||||
- **值通配符**:颜色
|
||||
- `wig`:假发
|
||||
- **值通配符**:颜色
|
||||
- `m`/`misc`:杂项
|
||||
- `censored`:遮盖
|
||||
- **mosaic**:马赛克填充
|
||||
- **texture**:纹理填充
|
||||
- `flashlight`:闪光灯
|
||||
- `scale`:缩放倍数
|
||||
- **默认值**:`1`/`no`
|
Reference in New Issue
Block a user