{"id":44553,"date":"2016-11-10T22:45:28","date_gmt":"2016-11-10T13:45:28","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=44553"},"modified":"2016-11-10T22:45:28","modified_gmt":"2016-11-10T13:45:28","slug":"imageoptim-cli","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/imageoptim-cli\/","title":{"rendered":"ImageOptim-CLI - JPEGmini for Mac\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u5727\u7e2e\u30c4\u30fc\u30eb"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2016\/11\/Is-2016-11-03-12.22.21.jpg\" alt=\"S 2016 11 03 12 22 21\" title=\"s 2016-11-03 12.22.21.jpg\" border=\"0\" width=\"978\" height=\"795\" \/><\/p>\n<p>Mac\u7528\u306e\u9ad8\u54c1\u8cea\u306a\u753b\u50cf\u5727\u7e2e\u30a2\u30d7\u30ea\u300c<a href=\"http:\/\/www.jpegmini.com\/mac\">JPEGmini for Mac<\/a>\u300d\u3002JPEG\u30d5\u30a1\u30a4\u30eb\u3092\u3067\u304d\u308b\u3060\u3051\u52a3\u5316\u3059\u308b\u3053\u3068\u306a\u304f\u5727\u7e2e\u3067\u304d\u308b\u5927\u5909\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001Mac\u30a2\u30d7\u30ea\u7248\u306f\u6b8b\u5ff5\u306a\u304c\u3089\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u307e\u305fAppleScript\u304b\u3089\u547c\u3073\u51fa\u3059\u3053\u3068\u3082\u4e0d\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/github.com\/JamieMason\/ImageOptim-CLI\">ImageOptim-CLI<\/a>\u300d\u306f\u3053\u306e\u6b20\u70b9\u3092\u88dc\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002ImageOptim\u3084ImageAlpha\u3001JPEGmini for Mac\u3068\u3044\u3063\u305f\u5404\u7a2e\u753b\u50cf\u51e6\u7406\u30a2\u30d7\u30ea\u3092\u7d44\u307f\u5408\u308f\u305b\u3001\u753b\u50cf\u5727\u7e2e\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5148\u307b\u3069\u8ff0\u3079\u305f\u3088\u3046\u306bJPEGmini for Mac\u306fAppleScript\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u4f5c\u696d\u306e\u81ea\u52d5\u5316\u306e\u305f\u3081\u306b\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u30a2\u30d7\u30ea\u3092\u30a2\u30b7\u30b9\u30c6\u30a3\u30d6\u30c7\u30d0\u30a4\u30b9\u3068\u3057\u3066\u767b\u9332\u3057\u3001\u30a2\u30d7\u30ea\u306e\u64cd\u4f5c\u3092\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3067\u304d\u308b\u3088\u3046\u6e96\u5099\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u7d50\u69cb\u5f37\u5f15\u306a\u624b\u6bb5\u3067\u3059\u304c\u3001\u4e00\u5fdc\u4f5c\u696d\u306e\u81ea\u52d5\u5316\u306f\u53ef\u80fd\u306a\u6a21\u69d8\u3067\u3059\u3002<\/p>\n<h2>\u4e8b\u524d\u6e96\u5099<\/h2>\n<p>JPEGmini\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u5834\u5408\u3001\u30b7\u30b9\u30c6\u30e0\u74b0\u5883\u8a2d\u5b9a\u3092\u8d77\u52d5\u3057\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc > \u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u300d\u304b\u3089iTerm.app\u3084Terminal.app\u3092\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2016\/11\/Isecurity.jpg\" alt=\"Security\" title=\"security.jpg\" border=\"0\" width=\"730\" height=\"576\" \/><\/p>\n<p>\u3053\u306e\u767b\u9332\u3092\u884c\u308f\u306a\u3044\u3068\u521d\u56de\u5b9f\u884c\u6642\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\u2718 To automate JPEGmini we need to add Terminal.app (or iTerm.app etc) to the 'support for assistive devices' whitelist. Please see README for more details.<\/pre>\n<p>\u4e00\u56de\u52d5\u304b\u3059\u3068\u30ea\u30b9\u30c8\u306b\u30bf\u30fc\u30df\u30ca\u30eb\u30a2\u30d7\u30ea\u304c\u767b\u9332\u3055\u308c\u305f\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u304b\u3089\u8a2d\u5b9a\u3092\u884c\u3046\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u5b9f\u884c<\/h2>\n<p>ImageOptim-CLI\u306fShell\u3068AppleScript\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306fnpm\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>\nnpm install -g imageoptim-cli\n<\/pre>\n<p>\u307e\u305f\u306fzip\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u624b\u52d5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306e\u65b9\u6cd5\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>JPEGmini\u3092\u5229\u7528\u3057\u3066\u5727\u7e2e\u5b9f\u884c<\/h2>\n<p>imageOptim\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002\u30b3\u30de\u30f3\u30c9\u540d\u306fimageoptim\u3067\u306f\u306a\u304fimageOptim(O\u304c\u5927\u6587\u5b57)\u306a\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>\nUsage: imageoptim [options]\n\nOptions:\n\n  -d, --directory       directory of images to process\n  -a, --image-alpha     pre-process PNGs with ImageAlpha.app *\n  -j, --jpeg-mini       pre-process JPGs with JPEGmini.app **\n  -m, --min-quality     pngquant min quality parameter\n  -s, --skip-if-larger  pngquant use --skip-if-larger\n  -q, --quit            quit all apps when complete\n  -c, --no-color        disable color output\n  -h, --help            display this usage information\n  -e, --examples        display some example commands and uses\n  -v, --version         display the version number\n  --verbose             display detailed, per-file info on optimizations\n\n*  http:\/\/pngmini.com\n** https:\/\/itunes.apple.com\/us\/app\/jpegmini\/id498944723\n<\/pre>\n<p>\u809d\u5fc3\u306eJPEGmini\u3092\u5229\u7528\u3057\u305f\u5727\u7e2e\u306b\u306f\u300c-j, --jpeg-mini\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u7279\u5b9a\u306eJPEG\u30d5\u30a1\u30a4\u30eb\u3092\u5727\u7e2e\u3057\u305f\u3044\u5834\u5408\u3001\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u306fimageOptim\u306e\u5f15\u6570\u3067\u306f\u306a\u304f\u30d1\u30a4\u30d7\u3067\u6e21\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u6a21\u69d8\u3067\u3059\u3002<\/p>\n<pre>\nfind ~\/tmp3 -name '*.jpg' | imageOptim -j\necho \/Users\/sora\/tmp3\/image.jpg  | imageOptim -j\n<\/pre>\n<p>\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u5b58\u5728\u3059\u308bJPEG\u30d5\u30a1\u30a4\u30eb\u3092\u5168\u3066\u5727\u7e2e\u3057\u305f\u3044\u5834\u5408\u300c-d \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>\nimageOptim -j -d ~\/tmp3\n<\/pre>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068JPEGmini\u306eGUI\u304c\u7acb\u3061\u4e0a\u304c\u308a\u3001\u81ea\u52d5\u3067\u5727\u7e2e\u51e6\u7406\u304c\u59cb\u307e\u308a\u307e\u3059\u3002\u5b9f\u969b\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u69d8\u5b50\u3092\u64ae\u5f71\u3057\u305f\u30c7\u30e2\u52d5\u753b\u3082\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><iframe width=\"680\" height=\"383\" src=\"https:\/\/www.youtube.com\/embed\/HGBounRIzSs\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>ImageOptim-CLI\u3092\u4f7f\u7528\u3059\u308c\u3070JPEGmini for Mac\u3092\u5229\u7528\u3057\u305f\u5727\u7e2e\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5b9f\u884c\u4e2d\u306f\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306bJPEGmini\u304c\u7acb\u3061\u4e0a\u304c\u308a\u3001\u81ea\u52d5\u64cd\u4f5c\u306e\u90aa\u9b54\u3092\u3059\u308b\u3068\u3046\u307e\u304f\u52d5\u304b\u306a\u304f\u306a\u308b\u3068\u3044\u3046\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4f5c\u696d\u52b9\u7387\u5316\u3092\u56f3\u308b\u3053\u3068\u306f\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n<table>\n<tr>\n<th rowspan='4' style='white-space: nowrap;'><img decoding=\"async\" style=\"max-width: 52px; height: auto;\" src=\"https:\/\/softantenna.com\/uploads\/software\/7505\/i_screenshot1.jpg\" alt=\"I screenshot1\" \/><\/th>\n<th style='white-space: nowrap;'>\u30bf\u30a4\u30c8\u30eb<\/th>\n<td>ImageOptim-CLI<\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u516c\u5f0f\u30b5\u30a4\u30c8<\/th>\n<td><a href=\"https:\/\/github.com\/JamieMason\/ImageOptim-CLI\">https:\/\/github.com\/JamieMason\/ImageOptim-CLI<\/a><\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u30bd\u30d5\u30c8\u30a2\u30f3\u30c6\u30ca<\/th>\n<td><a href=\"https:\/\/softantenna.com\/softwares\/7505-image-optim-cli\">https:\/\/softantenna.com\/softwares\/7505-image-optim-cli<\/a><\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u8aac\u660e<\/th>\n<td> ImageOptim\u3001ImageAlpha\u3001JPEGmini for Mac\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u753b\u50cf\u5727\u7e2e\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30c4\u30fc\u30eb\u3002<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Mac\u7528\u306e\u9ad8\u54c1\u8cea\u306a\u753b\u50cf\u5727\u7e2e\u30a2\u30d7\u30ea\u300cJPEGmini for Mac\u300d\u3002JPEG\u30d5\u30a1\u30a4\u30eb\u3092\u3067\u304d\u308b\u3060\u3051\u52a3\u5316\u3059\u308b\u3053\u3068\u306a\u304f\u5727\u7e2e\u3067\u304d\u308b\u5927\u5909\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001Mac\u30a2\u30d7\u30ea\u7248\u306f\u6b8b\u5ff5\u306a\u304c\u3089\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u307e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":44554,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[3623,3620],"class_list":["post-44553","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-imageoptim","tag-jpegmini"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/44553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=44553"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/44553\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/44554"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=44553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=44553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=44553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}