1
0
mirror of https://github.com/privacyguides/i18n.git synced 2025-08-27 16:39:16 +00:00
Files
i18n/i18n/ja/meta/uploading-images.md
2023-11-15 17:32:29 +00:00

90 lines
2.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 画像のアップロード
---
Privacy Guidesに投稿する際の一般的なルールをいくつか紹介します。
## 画像
- SVG画像を**推奨**しますが、存在しない場合はPNG画像を使用できます
企業ロゴのキャンバスサイズ:
- 128x128px
- 384x128px
## 最適化
### PNG
[OptiPNG](https://sourceforge.net/projects/optipng/)を使用してPNG画像を最適化してください。
```bash
optipng -o7 file.png
```
### SVG
#### Inkscape
すべてのSVG画像に[Scour](https://github.com/scour-project/scour)を使用してください。
Inkscapeでは、
1. 名前を付けてファイルを保存...
2. 種類を「最適化されたSVG*.svg」に設定
**オプション**タブでは、
- **座標の有効桁数** > **5**
- [x] Turn on **Shorten color values**
- [x] Turn on **Convert CSS attributes to XML attributes**
- [x] Turn on **Collapse groups**
- [x] Turn on **Create groups for similar attributes**
- [ ] Turn off **Keep editor data**
- [ ] Turn off **Keep unreferenced definitions**
- [x] Turn on **Work around renderer bugs**
In the **SVG Output** tab under **Document options**:
- [ ] Turn off **Remove the XML declaration**
- [x] Turn on **Remove metadata**
- [x] Turn on **Remove comments**
- [x] Turn on **Embeded raster images**
- [x] Turn on **Enable viewboxing**
In the **SVG Output** under **Pretty-printing**:
- [ ] Turn off **Format output with line-breaks and indentation**
- **Indentation characters** > Select **Space**
- **Depth of indentation** > **1**
- [ ] Turn off **Strip the "xml:space" attribute from the root SVG element**
**ID**タブでは、
- [x] Turn on **Remove unused IDs**
- [ ] Turn off **Shorten IDs**
- **Prefix shortened IDs with** > `leave blank`
- [x] Turn on **Preserve manually created IDs not ending with digits**
- **Preserve the following IDs** > `leave blank`
- **Preserve IDs starting with** > `leave blank`
#### コマンドラインツール
同じことが[Scour](https://github.com/scour-project/scour)コマンドでも可能です。
```bash
scour --set-precision=5 \
--create-groups \
--renderer-workaround \
--remove-descriptive-elements \
--enable-comment-stripping \
--enable-viewboxing \
--indent=space \
--nindent=1 \
--no-line-breaks \
--enable-id-stripping \
--protect-ids-noninkscape \
input.svg output.svg
```