WebP ギャラリー
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このギャラリーのコンテンツ
このギャラリー ページは、Google Chrome、Opera など、WebP をサポートしているブラウザで表示することをおすすめします。
Google Chrome にアクセスできない場合は、
ローカル ドライブを使用して、他の Google Cloud プロダクトと
WebP をサポートしている必要があります。
JPEG と WebP の画像ファイルのサンプルと PNG ソース
次の表に、スケーリングされた JPEG 画像(左)と WebP 画像(右)を並べて示します。WebP をネイティブにサポートするブラウザが存在するため、リリース時のように WebP 画像を PNG コンテナに配置することはなくなりました。画像ファイルのサイズが正確である。JPEG と WebP のサムネイルをクリックすると、
新しいタブで大きな画像を表示
サムネイルの下のファイルサイズは、画像のファイルサイズに対応します。
サムネイルをクリックすると表示されますWebP 画像は JPEG 画像よりも 30% 以上小さくなります。
画像クレジット
このページの画像は、さまざまな情報源から提供されています。Google には
は WebP の特質を示すために魅力的でリッチな写真をいくつか選びました。
上記の画像のクレジットは次のとおりです。
画像の再現
再現性のため、および一部の WebP の使用を説明するために
説明するので、ここでは、データ圧縮を
このギャラリーの画像を生成しています
ソース画像を変換して再スケーリングするために、convert
という名前の最新バージョンの ImageMagick ツールを使用しました。このツールは https://www.imagemagick.org で入手できます。バージョン情報は次のようになります。
Version: ImageMagick 6.5.7-8 2010-12-02 Q16 https://www.imagemagick.org
JPEG 圧縮には、IJG のリファレンス エンコーダ バージョン 8b を使用しました。
https://www.ijg.org/files/jpegsrc.v8b.tar.gz で参照できます。
バージョン情報は次のようになります。
Independent JPEG Group's CJPEG, version 8b 16-May-2010
Copyright (C) 2010, Thomas G. Lane, Guido Vollbeding
ソース PNG 画像の生成
まず、JPEG ソースを単に以下を使用して可逆 PNG 形式に変換します。
convert in.jpg out.png
次に、大きいソース画像が小さい幅の 1, 024 ピクセルにリスケールされます。
次のコマンドを使用します。
convert in.png -depth 16 -gamma 0.454545 -filter lanczos -resize 1024 -gamma 2.2 -depth 8 out.png
を実行して、最終的なソース PNG 画像セットを生成します。
JPEG のエンコーダ(cjpeg
)は、PPM 形式の入力画像を受け取ります。convert
を使用して生成します。コンバージョンの完全なシーケンスは次のようになります。
convert in.png tmp.ppm
cjpeg -optimize -quality 80 -outfile out.jpg tmp.ppm
を使用すると、品質係数が 80 に最適化された JPEG ファイルが生成されます。
最適化した JPEG ファイルと比較して、ファイルサイズを 30% 削減することを目指しました。
そのため、各画像のターゲット サイズを明示的に指定しました。
また、cwebp
ツールの -f
オプションを使用して、各画像のフィルタ強度にアドホック値を設定します。モデルの振幅は、
画像によっては、
-sns
オプション。使用したコマンドラインの内容は次のとおりです。
cwebp -m 6 -f 50 -size 31500 1.png -o 1.webp
cwebp -m 6 -f 20 -sns 100 -size 62000 2.png -o 2.webp
cwebp -m 6 -sns 90 -size 213000 3.png -o 3.webp
cwebp -m 6 -f 40 -size 181000 4.png -o 4.webp
cwebp -m 6 -f 40 -size 89000 5.png -o 5.webp
全体として、生成された WebP ファイルによって世界全体で 32% の節約を達成しました。
JPEG ファイルのサイズに対応してください
このページで使用されている WebP サムネイルも、JPEG に比べて 26% 小さくなっています。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-08 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-08 UTC。"],[[["\u003cp\u003eThis gallery showcases the advantages of using WebP images over JPEG images, particularly in terms of file size reduction.\u003c/p\u003e\n"],["\u003cp\u003eWebP images in this gallery are more than 30% smaller than their JPEG counterparts while maintaining comparable visual quality.\u003c/p\u003e\n"],["\u003cp\u003eThe gallery provides sample images in both JPEG and WebP formats, along with the original PNG source for comparison.\u003c/p\u003e\n"],["\u003cp\u003eVisitors can download these images and utilize them with WebP-supported products.\u003c/p\u003e\n"],["\u003cp\u003eDetails on the tools and compression parameters used to generate the WebP images are provided for reproducibility.\u003c/p\u003e\n"]]],["This gallery displays side-by-side comparisons of JPEG and WebP images, demonstrating WebP's smaller file sizes. WebP images are consistently over 30% smaller than their JPEG counterparts. The gallery includes five example images from various sources, each with downloadable JPEG, WebP, and PNG files. The method for creating these image formats are detailed, utilizing tools like ImageMagick and cjpeg, and employing specific commands to convert, compress, and optimize the images to Webp and JPEG.\n"],null,["# WebP Gallery\n\nContents of this Gallery\n------------------------\n\nThis gallery page is best viewed with a browser that supports WebP, such as\nGoogle Chrome, Opera\n[and others](/speed/webp/faq#which_web_browsers_natively_support_webp).\n\nIf you don't have access to Google Chrome, you may download the images on your\nlocal drive to use with other products that\n[support WebP](https://wikipedia.org/wiki/WebP#Support).\n\nSample Image Files in JPEG and WebP and the PNG Source\n------------------------------------------------------\n\nThe table below shows scaled JPEG (on the left) and WebP images (on the right)\nside-by-side for comparison. Since browsers exist that support WebP natively,\nwe no longer place WebP images in a PNG container as we did at launch. Image\nfile sizes are exact. Clicking on the JPEG and WebP thumbnails will open the\nlarge images in a new tab\n\nFile sizes below the thumbnails correspond to the files sizes of the images\nviewed when clicking the thumbnails. The WebP images are more than 30% smaller\nthan the JPEG ones.\n\n| JPEG | WEBP |\n|--------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| \"Nærøyfjorden, Norway - from Breiskrednosi. UNESCO World Heritage\" [^1^](#credits1) ||\n| [](https://www.gstatic.com/webp/gallery/1.jpg) JPEG file size: 43.84 KB | [](https://www.gstatic.com/webp/gallery/1.webp) WebP file size: 29.61 KB |\n| ||\n| \"Kayaker at Ekstremsportveko 2010, Voss\". [^2^](#credits2) ||\n| [](https://www.gstatic.com/webp/gallery/2.jpg) JPEG file size: 86.25 KB | [](https://www.gstatic.com/webp/gallery/2.webp) WebP file size: 59.18 KB |\n| ||\n| Frame 10 of the \"Parkrun\" sequence [^3^](#credits3) ||\n| [](https://www.gstatic.com/webp/gallery/3.jpg) JPEG file size: 297.05 KB | [](https://www.gstatic.com/webp/gallery/3.webp) WebP file size: 198.38 KB |\n| ||\n| Image: [\"A Wild Cherry (Prunus avium) in flower\"](https://commons.wikimedia.org/wiki/File:Fr%C3%BChling_bl%C3%BChender_Kirschenbaum.jpg) [^4^](#credits4) ||\n| [](https://www.gstatic.com/webp/gallery/4.jpg) JPEG file size: 251.03 KB | [](https://www.gstatic.com/webp/gallery/4.webp) WebP file size: 172.82 KB |\n| ||\n| Image: [Fire breathing \"Jaipur Maharaja Brass Band\" Chassepierre Belgium](https://commons.wikimedia.org/wiki/File:Fire_breathing_2_Luc_Viatour.jpg) [^5^](#credits5) ||\n| [](https://www.gstatic.com/webp/gallery/5.jpg) JPEG file size: 120.78 KB | [](https://www.gstatic.com/webp/gallery/5.webp) WebP file size: 80.76 KB |\n\nImage Credits\n-------------\n\nThe images on this page come from a number of different sources. We have\nselected some delightful and rich pictures to showcase qualities of WebP.\n\nCredits for the images above are listed here in order.\n\n|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | \"Nærøyfjorden, Norway - from Breiskrednosi. UNESCO World Heritage\" Image Author: Kjetil Birkeland Moe Reproduced with permission of the author. [PNG source](https://www.gstatic.com/webp/gallery/1.png) [Blog post](https://www.kjetilbm.net/prosjekter/data/lyd-og-bilde/webp#) by author with comparison of JPEG and WebP. Mouse hover activates examples. |\n| 2 | \"Kayaker at Ekstremsportveko 2010, Voss\" Image Author: Kjetil Birkeland Moe Reproduced with permission of the author. [PNG source](https://www.gstatic.com/webp/gallery/2.png) [Blog post](https://www.kjetilbm.net/prosjekter/data/lyd-og-bilde/webp#) by author with comparison of JPEG and WebP. Mouse hover activates examples. |\n| 3 | Frame 10 of the \"Parkrun\" sequence Image Producer: Lars Haglund, SVT Sveriges Television AB Reproduced with permission of producer [PNG source](https://www.gstatic.com/webp/gallery/3.png) |\n| 4 | Image: [\"A Wild Cherry (Prunus avium) in flower\"](https://commons.wikimedia.org/wiki/File:Fr%C3%BChling_bl%C3%BChender_Kirschenbaum.jpg) Image Author: Benjamin Gimmel [PNG source](https://www.gstatic.com/webp/gallery/4.png) Photo licensed under the [Creative Commons](https://en.wikipedia.org/wiki/en:Creative_Commons) [Attribution-Share Alike 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/deed.en) license. |\n| 5 | Image: [Fire breathing \"Jaipur Maharaja Brass Band\" Chassepierre Belgium](https://commons.wikimedia.org/wiki/File:Fire_breathing_2_Luc_Viatour.jpg) Author: Luc Viatour [PNG source](https://www.gstatic.com/webp/gallery/5.png) Photo licensed under the [Creative Commons](https://en.wikipedia.org/wiki/en:Creative_Commons) [Attribution-Share Alike 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/deed.en) license. Author website at [www.lucnix.be](https://www.lucnix.be) |\n\nReproducing the Images\n----------------------\n\nFor the sake of reproducibility and to demonstrate the use of some WebP\ncompression parameters, we describe here the exact steps involved when\ngenerating the images in this gallery.\n\n### Tools\n\nTo convert and rescale the source pictures, we used a recent version of\nImageMagick's tool named `convert`, available at \u003chttps://www.imagemagick.org\u003e.\nThe version information reads: \n\n Version: ImageMagick 6.5.7-8 2010-12-02 Q16 https://www.imagemagick.org\n\nFor JPEG compression, we used the version 8b of IJG's reference encoder,\navailable at \u003chttps://www.ijg.org/files/jpegsrc.v8b.tar.gz\u003e.\n\nThe version information reads: \n\n Independent JPEG Group's CJPEG, version 8b 16-May-2010\n Copyright (C) 2010, Thomas G. Lane, Guido Vollbeding\n\n### Generating the Source PNG Pictures\n\nFirst, the JPEG sources are converted losslessly to PNG format simply using: \n\n convert in.jpg out.png\n\nThen, the large source images are rescaled to a smaller width of 1024 pixels\nusing the following command: \n\n convert in.png -depth 16 -gamma 0.454545 -filter lanczos -resize 1024 -gamma 2.2 -depth 8 out.png\n\nto produce the final set of source PNG images.\n\n### Compressing to JPEG Format\n\nJPEG's encoder (`cjpeg`) takes input images in PPM format. We use `convert` to\ngenerate them. The complete conversion sequence is then: \n\n convert in.png tmp.ppm\n cjpeg -optimize -quality 80 -outfile out.jpg tmp.ppm\n\nwhich produces optimized JPEG files with a quality factor of 80.\n\n### Compressing to WebP Format\n\nWe targeted a 30% file size reduction compared to the optimized JPEG files.\nThus, we explicitly specified the target sizes for each picture.\nAdditionally, we set ad-hoc values for the filtering strength for each\npicture, thanks to the `-f` option of the `cwebp` tool. The amplitude of the\nspatial noise shaping is also reinforced for some pictures by use of the\n`-sns` option. The exact command lines used read: \n\n cwebp -m 6 -f 50 -size 31500 1.png -o 1.webp\n cwebp -m 6 -f 20 -sns 100 -size 62000 2.png -o 2.webp\n cwebp -m 6 -sns 90 -size 213000 3.png -o 3.webp\n cwebp -m 6 -f 40 -size 181000 4.png -o 4.webp\n cwebp -m 6 -f 40 -size 89000 5.png -o 5.webp\n\nOverall, the resulting WebP files provided a global saving of 32% compared\nto the JPEG file sizes.\n\nNote that the WebP thumbnails used on this page are also smaller by 26%\ncompared to their JPEG equivalent."]]