mirror of
https://github.com/privacyguides/i18n.git
synced 2025-08-03 14:51:19 +00:00
2.4 KiB
2.4 KiB
title
title |
---|
画像のアップロード |
Privacy Guidesに投稿する際の一般的なルールをいくつか紹介します。
画像
- SVG画像を推奨しますが、存在しない場合はPNG画像を使用できます
企業ロゴのキャンバスサイズ:
- 128x128px
- 384x128px
最適化
PNG
OptiPNGを使用してPNG画像を最適化してください。
optipng -o7 file.png
SVG
Inkscape
すべてのSVG画像にScourを使用してください。
Inkscapeでは、
- 名前を付けてファイルを保存...
- 種類を「最適化されたSVG(*.svg)」に設定
オプションタブでは、
- 座標の有効桁数 > 5
- Turn on Shorten color values
- Turn on Convert CSS attributes to XML attributes
- Turn on Collapse groups
- Turn on Create groups for similar attributes
- Turn off Keep editor data
- Turn off Keep unreferenced definitions
- Turn on Work around renderer bugs
In the SVG Output tab under Document options:
- Turn off Remove the XML declaration
- Turn on Remove metadata
- Turn on Remove comments
- Turn on Embeded raster images
- 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タブでは、
- Turn on Remove unused IDs
- Turn off Shorten IDs
- Prefix shortened IDs with >
leave blank
- Turn on Preserve manually created IDs not ending with digits
- Preserve the following IDs >
leave blank
- Preserve IDs starting with >
leave blank
コマンドラインツール
同じことがScourコマンドでも可能です。
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