{"id":1631,"date":"2026-01-12T21:08:34","date_gmt":"2026-01-12T12:08:34","guid":{"rendered":"https:\/\/hi3103.net\/notes\/?p=1631"},"modified":"2026-01-12T21:00:12","modified_gmt":"2026-01-12T12:00:12","slug":"macos-%e3%81%a7-png-%e7%94%bb%e5%83%8f%e3%82%92%e5%9c%a7%e7%b8%ae%e5%87%a6%e7%90%86%e3%81%99%e3%82%8b%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%80%8cpngquant%e3%80%8d%e3%82%92%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"https:\/\/hi3103.net\/notes\/mac\/1631","title":{"rendered":"macOS \u3067 PNG \u753b\u50cf\u3092\u5727\u7e2e\u51e6\u7406\u3059\u308b\u30b3\u30de\u30f3\u30c9\u300cpngquant\u300d\u3092\u4f7f\u3046"},"content":{"rendered":"<h3>\u6982\u8981<\/h3>\n<ul>\n<li>\u3061\u3087\u3063\u3068\u3057\u305f\u753b\u50cf\u306e\u5727\u7e2e\u306f TinyPNG \u3092\u4f7f\u308f\u305b\u3066\u3082\u3089\u3063\u3066\u308b\u304c\u3001\u4e00\u6c17\u306b50\u679a\u307b\u3069\u51e6\u7406\u3057\u305f\u3044\u30b7\u30fc\u30f3\u304c\u51fa\u3066\u304d\u305f<\/li>\n<li>macOS \u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u3067\u5bfe\u5fdc\u3067\u304d\u308b pngquant \u3092\u8a66\u3057\u3066\u307f\u308b\u3002<\/li>\n<\/ul>\n<h3>\u5c0e\u5165\u3059\u308b\u3082\u306e<\/h3>\n<ul>\n<li>pngquant \u2014 lossy PNG compressor\n<ul>\n<li><a href=\"https:\/\/pngquant.org\/\">https:\/\/pngquant.org\/<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u53c2\u8003\u30a8\u30f3\u30c8\u30ea\u30fc<\/h3>\n<ul>\n<li>PNG\u5727\u7e2e\u30c4\u30fc\u30ebpngquant\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac #\u521d\u5fc3\u8005 &#8211; Qiita\n<ul>\n<li><a href=\"https:\/\/qiita.com\/YutaManaka\/items\/bb5f634f7233e6a4ff49\">https:\/\/qiita.com\/YutaManaka\/items\/bb5f634f7233e6a4ff49<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h3>\u4f5c\u696d\u30ed\u30b0<\/h3>\n<h4>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<pre><code class=\"language-bash\">brew install pngquant<\/code><\/pre>\n<h4>\u4f7f\u3044\u65b9\u3092\u898b\u308b<\/h4>\n<pre><code>&gt; pngquant -h\npngquant, 3.0.3 (Rust), by Kornel Lesinski, Greg Roelofs.\n\nusage:  pngquant [options] [ncolors] -- pngfile [pngfile ...]\n        pngquant [options] [ncolors] - &gt;stdout &lt;stdin\n\noptions:\n  --force           overwrite existing output files (synonym: -f)\n  --skip-if-larger  only save converted files if they're smaller than original\n  --output file     destination file path to use instead of --ext (synonym: -o)\n  --ext new.png     set custom suffix\/extension for output filenames\n  --quality min-max don't save below min, use fewer colors below max (0-100)\n  --speed N         speed\/quality trade-off. 1=slow, 4=default, 11=fast &amp; rough\n  --nofs            disable Floyd-Steinberg dithering\n  --posterize N     output lower-precision color (e.g. for ARGB4444 output)\n  --strip           remove optional metadata (default on Mac)\n  --verbose         print status messages (synonym: -v)\n\nQuantizes one or more 32-bit RGBA PNGs to 8-bit (or smaller) RGBA-palette.\nThe output filename is the same as the input name except that\nit ends in \"-fs8.png\", \"-or8.png\" or your custom extension (unless the\ninput is stdin, in which case the quantized image will go to stdout).\nIf you pass the special output path \"-\" and a single input file, that file\nwill be processed and the quantized image will go to stdout.\nThe default behavior if the output file exists is to skip the conversion;\nuse --force to overwrite. See man page for full list of options.<\/code><\/pre>\n<h4>\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306ePNG\u753b\u50cf\u3092\u4e00\u6c17\u306b\u5727\u7e2e<\/h4>\n<h5>\u5b9f\u884c\u30b3\u30de\u30f3\u30c9<\/h5>\n<pre><code class=\"language-bash\">pngquant --ext .png *.png --force<\/code><\/pre>\n<ul>\n<li><code>--ext .png<\/code> \uff1a\u62e1\u5f35\u5b50\u3092 <code>.png<\/code> \u3067\u51fa\u529b<\/li>\n<li><code>*.png<\/code> \uff1a\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a<\/li>\n<li><code>--force<\/code> \uff1a\u540c\u540d\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u4e0a\u66f8\u304d\u3059\u308b<\/li>\n<\/ul>\n<h5>\u7d50\u679c<\/h5>\n<p>56\u679a\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u753b\u50cf\u306b\u5bfe\u3057\u3066\u9069\u7528\u3002\u304a\u304a\u3080\u306d\u534a\u5206\u4ee5\u4e0b\u306e\u5bb9\u91cf\u306b\u306a\u3063\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2026\/01\/2402-pngquant.png\" alt=\"\" width=\"571\" height=\"590\"  \/><\/p>\n<h4>\u30a8\u30a4\u30ea\u30a2\u30b9\u306b\u767b\u9332\u3059\u308b<\/h4>\n<p>\u3068\u308a\u3042\u3048\u305a\u300c\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u3059\u3079\u3066\u3092\u5727\u7e2e\u300d\u3068\u3044\u3046\u64cd\u4f5c\u306f\u30b5\u30af\u30c3\u3068\u3067\u304d\u308b\u3088\u3046\u3001zsh \u306e\u30a8\u30ea\u30a2\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304f<\/p>\n<p><code>.zshrc<\/code> \u306e\u7de8\u96c6\u753b\u9762\u306b\u5165\u308b<\/p>\n<pre><code class=\"language-bash\">vi ~\/.zshrc<\/code><\/pre>\n<p>\u4ee5\u4e0b\u3092\u5165\u529b\u3057\u3066\u4fdd\u5b58<\/p>\n<pre><code class=\"language-bash\">alias tinypng=\"pngquant --ext .png *.png --force\"<\/code><\/pre>\n<p><code>.zshrc<\/code> \u3092\u518d\u8aad\u307f\u8fbc\u307f<\/p>\n<pre><code class=\"language-bash\">source ~\/.zshrc<\/code><\/pre>\n<p>PNG\u753b\u50cf\u304c\u914d\u7f6e\u3057\u3066\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u3001\u52d5\u4f5c\u30c1\u30a7\u30c3\u30af<\/p>\n<pre><code>tinypng<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u3061\u3087\u3063\u3068\u3057\u305f\u753b\u50cf\u306e\u5727\u7e2e\u306f TinyPNG \u3092\u4f7f\u308f\u305b\u3066\u3082\u3089\u3063\u3066\u308b\u304c\u3001\u4e00\u6c17\u306b50\u679a\u307b\u3069\u51e6\u7406\u3057\u305f\u3044\u30b7\u30fc\u30f3\u304c\u51fa\u3066\u304d\u305f macOS \u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u3067\u5bfe\u5fdc\u3067\u304d\u308b pngquant \u3092\u8a66\u3057\u3066\u307f\u308b\u3002 \u5c0e\u5165\u3059\u308b\u3082\u306e pngquan [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[110,15],"class_list":["post-1631","post","type-post","status-publish","format-standard","hentry","category-mac","tag-mac-os-tahoe","tag-terminal"],"_links":{"self":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/comments?post=1631"}],"version-history":[{"count":0,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1631\/revisions"}],"wp:attachment":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/media?parent=1631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/categories?post=1631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/tags?post=1631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}