PGM を GRAYA に変換
端末内ですべて処理しています — 大きなファイルは少し時間がかかる場合があります。
マスク画像を保つなら GrayA、閲覧には PNG へ変換します。 ファイルがまだ PGM 形式なら、このページが最短ルートです:PGM はグレースケールの portable graymap です。ヘッダーと輝度値だけという単純な構造で、画像処理の教材にも使われます。
iLoveConverter はすべてをローカルで処理するため、プライベートで高速です:アップロード待ちもサーバー保存も回数制限もありません。好きなだけファイルを追加でき、一括変換は標準搭載です。
How PGM compares to GRAYA
| PGM | GRAYA | |
|---|---|---|
| Structure | P2 (ASCII) / P5 (binary) header + samples | Grayscale + Alpha (raw) coder |
| Compatibility | netpbm, OpenCV, MATLAB | ImageMagick, specialty tools |
| Best for | Research pipelines, raw luminance | Legacy and specialty pipelines |
PGM を GRAYA に変換する方法
- 1
ファイルを選択
PGM ファイルを上のエリアにドラッグ&ドロップするか、クリックして選択してください。複数ファイルを同時に追加して一括変換できます。
- 2
即座に変換
「GRAYA に変換」をクリックしてください。変換は WebAssembly を使ってブラウザ内で完結します — アップロードも待ち行列もありません。
- 3
結果をダウンロード
変換された GRAYA ファイルを個別に、またはまとめて ZIP でダウンロードできます。
PGM 形式について
PGM is netpbm's grayscale format: a two-line text header, then raw 8 or 16-bit luminance samples with no compression and no metadata. That raw honesty made it the default exchange format of computer-vision research, image-processing coursework and any pipeline where "what you read is exactly the pixel value" matters.
Converting PGM to PNG or JPG just normalizes it for humans; converting back down preserves every value bit-exactly when the pipeline needs numbers, not pictures.
+長所
- ✓Bit-exact pixel values, no color management surprises
- ✓16-bit depth support
- ✓Trivially parseable
!短所
- −No compression — large files
- −Grayscale only
- −No embedded metadata
GRAYA 形式について
GrayA はグレースケールに透明度を加えた生ラスター形式です。モノクロのマスクやアルファマップをそのまま保てます。
用途が限定的で、閲覧には PNG への変換が一般的です。
+長所
- ✓モノクロ+透明を保持
- ✓構造が単純
- ✓Free, private, no watermarks
!短所
- −対応ソフトが少ない
- −用途が限定的
- −Keep the original for re-editing
PGM を GRAYA に変換する理由
PGM を GRAYA に変換する意味は、GRAYA の長所が PGM にできないことを補える点にあります。モノクロ+透明を保持 一方で No compression — large files 上の変換ツールを使えば、ファイルはその天秤の正しい側に置かれます。
よくある質問
Is this PGM to GRAYA converter really free?
Yes — completely free, with no sign-up, no watermark and no daily conversion limits. The site is supported by advertising.
Are my files uploaded to a server?
No. The conversion runs entirely inside your browser using WebAssembly, so your files never leave your device — that is what makes it instant and private.
Does it work on Windows, Mac, iPhone and Android?
Yes. Anything with a modern browser works: Windows, macOS, Linux, Android and iOS. No software installation is required.
Will I lose quality converting PGM to GRAYA?
No — GRAYA is a lossless format, so every pixel of the converted image matches your original PGM file. You can also adjust the quality/size balance before converting when the target format supports compression.
透明背景は保持されますか?
出力形式が対応していれば保持されます(PNG・WebP・AVIF など)。JPEG は透明を白で塗りつぶすため、透明が必要なら PNG をお選びください。
画質とファイルサイズはどれくらい変わりますか?
フォーマットごとの圧縮効率が異なります。WebP や AVIF は同画质で JPG より大幅に小さくなることが多く、逆に PNG への変換は大きくなります。