背景が透明なPNGをつくる方法
- 選ぶ
- 透明にする
- 保存する
ロゴやアイコンを、色のついた背景や写真の上に重ねたいとき、白い四角が付いたままだと目立ちます。SVGをPNGに変換する で「背景」を「透明」にして保存すれば、図の部分だけが残るPNGができます。
手順
- 「SVGファイルを1つ選ぶ」で、SVGを選びます。
- 「背景」で、「透明」を選びます。
- 「大きさ」を決めます。
- 「PNGにして保存」を押します。
- 「プレビュー」を確認して、「PNGを保存する」で保存します。
透明なPNGの使いみち
- スライドの色付きの背景の上に、ロゴを置く
- 写真の上に、アイコンや文字を重ねる
- WebサイトやSNSの画像に、使う
- 資料のヘッダーに、ロゴを入れる
プレビューの見え方
透明な部分は、プレビューでは、市松模様や、画面の背景色として見えます。保存した画像を別の背景に置くと、その背景が透けて見えます。
背景が透明にならないとき
- SVGの中に、背景用の長方形が含まれている
- SVGの編集ソフトで、背景の図形を削除してから、変換する
透明に対応していない場面
- JPGは、透明に対応していない(白や黒になる)
- 一部の古いソフトでは、PNGの透明が、正しく表示されない
- 印刷では、透明部分は、紙の色になる
注意:暗い背景
文字や図が黒だと、暗い背景の上では、見えにくくなります。背景に合わせた色のロゴを、用意しましょう。
例
白い文字のロゴを、青い背景のスライドに置きたかった。背景を透明にして保存。青い背景の上に、きれいに重なった。
つまずきやすい点
- 透明にしたのに、白い四角が残る:SVGの中に、背景の図形がある。
- 保存した画像が、白く見える:画像ビューアの背景が、白い。他の背景に置いて確認する。
- ふちがギザギザに見える:倍率を上げて保存する。
よくある質問
透明な部分を、あとから白にできますか?
画像編集ソフトでできますが、再度、変換するほうが簡単です。
まとめ
「背景」を「透明」にして保存。SVGの中の背景図形には、注意しましょう。
SVGをPNGに変換するを使う(無料)あわせて使えるツール
- 画像の形式を変換(JPG・PNG・WebP):画像をJPG・PNG・WebPに、まとめて変換します。
- 画像のサイズ(ピクセル)を変える:画像の大きさを、横幅・縦・割合で変えます。
- ファビコン(サイトのアイコン)を作る:1枚の画像から、ファビコン一式を作ります。
同じツールの、ほかの解説
How to Make a PNG with a Transparent Background
- Choose
- Make transparent
- Save
When you want to overlay a logo or icon on a coloured background or photo, a leftover white box stands out. Choosing "Transparent" for "Background" in Convert SVG to PNG and saving gives a PNG with only the figure remaining.
Steps
- With "Choose one SVG file", choose the SVG.
- Under "Background", choose "Transparent".
- Decide the "Size".
- Press "Make PNG and save".
- Check the "Preview" and save with "Save PNG".
Uses of a transparent PNG
- Placing a logo over a coloured slide background
- Overlaying an icon or text on a photo
- Using it in website or social media images
- Putting a logo in a document header
How the preview looks
Transparent parts appear in the preview as a checkerboard or as the screen's background colour. Placed on another background, that background shows through.
When the background doesn't become transparent
- The SVG contains a rectangle for the background
- Delete the background shape in SVG editing software and then convert
Where transparency isn't supported
- JPG doesn't support transparency (it becomes white or black)
- Some old software doesn't display PNG transparency correctly
- In print, transparent parts take the colour of the paper
Caution: dark backgrounds
If text and shapes are black, they are hard to see on dark backgrounds. Prepare a logo in a colour that suits the background.
Example
Wanted to put a white-text logo on a slide with a blue background. Saved with a transparent background. It overlaid neatly on the blue.
Common stumbling blocks
- A white box remains though transparent: the SVG contains a background shape.
- The saved image looks white: the image viewer's background is white. Check by placing it on another background.
- Edges look jagged: save at a higher scale.
Frequently asked questions
Can I turn transparent parts white later?
You can in image editing software, but converting again is easier.
Summary
Save with "Background" set to "Transparent". Watch for background shapes inside the SVG.
Use "Convert SVG to PNG" (free)Tools that go well with this
- Convert Image Format (JPG, PNG, WebP): Convert images to JPG, PNG or WebP, several at once.
- Resize Images by Pixel Size: Resize images by width, height or percentage.
- Make a Favicon (Site Icon): Make a complete favicon set from one image.