{"id":222573,"date":"2021-07-26T08:05:20","date_gmt":"2021-07-26T00:05:20","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=222573"},"modified":"2021-07-15T09:07:15","modified_gmt":"2021-07-15T01:07:15","slug":"linux-terminal-ascii","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-terminal-ascii.html","title":{"rendered":"Linux\u7ec8\u7aef\u4e0a\u5982\u4f55\u5c06\u56fe\u50cf\u8f6c\u6362\u6210 ASCII \u827a\u672f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u60f3\u5728 Linux \u7ec8\u7aef\u4e2d\u505a\u4e00\u4e9b\u6709\u8da3\u7684\u4e8b\u60c5\u5417\uff1f\u628a\u4e00\u5f20\u666e\u901a\u7684\u56fe\u7247\u8f6c\u6362\u6210 ASCII \u827a\u672f\u600e\u4e48\u6837\uff1f\u6765\u770b\u4e00\u4e0b\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u60f3\u5728 Linux \u7ec8\u7aef\u4e2d\u505a\u4e00\u4e9b\u6709\u8da3\u7684\u4e8b\u60c5\u5417\uff1f\u628a\u4e00\u5f20\u666e\u901a\u7684\u56fe\u7247\u8f6c\u6362\u6210 ASCII \u827a\u672f\u600e\u4e48\u6837\uff1f<\/p>\n

\u4f60\u77e5\u9053 \u4ec0\u4e48\u662f ASCII[1] \u4e48\uff1f\u5b83\u662f\u4e00\u4e2a\u6807\u51c6\uff0c\u5728 8 \u4f4d\u7801\u4e2d\u7684 256 \u4e2a\u7a7a\u4f4d\u4e0a\u5206\u914d\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u5176\u4ed6\u5b57\u7b26\u3002ASCII \u827a\u672f\u662f\u4e00\u4e2a\u7531\u53ef\u6253\u5370\u7684 ASCII \u5b57\u7b26\u7ec4\u6210\u7684\u56fe\u5f62\u3002\u57fa\u672c\u4e0a\uff0c\u5b83\u662f\u7531\u4e00\u5806\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u7279\u6b8a\u5b57\u7b26\u7ec4\u6210\u7684\u3002<\/p>\n

\u4f60\u53ef\u80fd\u89c1\u8fc7\u6709\u4eba \u4ee5 ASCII \u683c\u5f0f\u663e\u793a\u4ed6\u4eec\u53d1\u884c\u7248\u7684\u6807\u5fd7[2]\uff0c\u50cf\u8fd9\u6837\uff1a<\/p>\n

\"\"<\/p>\n

\u8fd9\u5f88\u9177\uff0c\u5bf9\u5417\uff1f\u628a\u4e00\u5f20\u666e\u901a\u7684\u56fe\u7247\u8f6c\u6362\u6210 ASCII \u827a\u672f\u600e\u4e48\u6837\uff1f\u8fd9\u5c31\u662f\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u8981\u63a2\u8ba8\u7684\u95ee\u9898\u3002<\/p>\n

Ascii Image Converter<\/strong><\/span><\/div>\n

\u987e\u540d\u601d\u4e49\uff0cAscii Image Converter[3] \u662f\u4e00\u4e2a\u5c06\u56fe\u7247\u8f6c\u6362\u4e3a ASCII \u827a\u672f\u7684\u5de5\u5177\u3002\u5b83\u662f\u4e00\u4e2a\u7528 Go \u8bed\u8a00\u7f16\u5199\u7684\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\u5de5\u5177\uff0c\u5b83\u6253\u5370\u51fa\u63d0\u4f9b\u7ed9\u5b83\u7684\u56fe\u7247\u7684ASCII\u7248\u672c\u3002<\/p>\n

\u4f60\u53ef\u80fd\u8ba4\u4e0d\u51fa\u6211\uff0c\u4f46\u4e0b\u9762\u7684\u56fe\u7247\u4e2d\u7684 ASCII \u7248\u5c31\u662f\u6211\u3002\u90a3\u662f\u6211\u7684 8 \u4f4d\u5934\u50cf\u3002<\/p>\n

\"\"<\/p>\n

\u8be5\u5de5\u5177\u652f\u6301\u4ee5\u4e0b\u683c\u5f0f\u7684\u8f93\u5165\u56fe\u50cf\uff1a<\/p>\n

    \n
  • JPEG\/JPG<\/li>\n
  • PNG<\/li>\n
  • BMP<\/li>\n
  • WEBP<\/li>\n
  • TIFF\/TIF<\/li>\n<\/ul>\n

    \u8ba9\u6211\u4eec\u770b\u770b\u5982\u4f55\u5b89\u88c5\u548c\u4f7f\u7528\u5b83\u3002<\/p>\n

    \u5728 Linux \u4e0a\u5b89\u88c5 Ascii Image Converter<\/strong><\/span><\/div>\n

    \u8fd9\u4e2a\u6709\u8da3\u7684\u5de5\u5177\u4e5f\u53ef\u4ee5\u5728 Windows \u4e0a\u4f7f\u7528\uff0c\u4f46\u6211\u4e0d\u6253\u7b97\u8fd9\u4e48\u505a\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u8ba9\u6211\u4eec\u575a\u6301\u4f7f\u7528 Linux\u3002<\/p>\n

    \u5982\u679c\u4f60\u7684\u53d1\u884c\u7248\u4e2d\u542f\u7528\u4e86 Snap[4]\uff0c\u4f60\u53ef\u4ee5\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u8f7b\u677e\u5730\u5b89\u88c5\u5b83\u7684 snap \u5305\uff1a<\/p>\n

    sudo snap install ascii-image-converter<\/pre>\n

    \u4f60\u4e5f\u53ef\u4ee5\u4ece\u5b83\u7684\u53d1\u5e03\u9875\u9762\u4e0b\u8f7d Linux \u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5e76\u628a\u53ef\u6267\u884c\u6587\u4ef6\u653e\u5728 \/usr\/local\/bin\/ \u76ee\u5f55\u4e0b\u3002\u8fd9\u6837\uff0c\u4f60\u5c31\u80fd\u50cf\u666e\u901a\u7684 Linux \u547d\u4ee4\u4e00\u6837\u8fd0\u884c\u5b83\u3002\u5982\u679c\u4f60\u60f3\u77e5\u9053\u4e3a\u4ec0\u4e48\u4f1a\u8fd9\u6837\uff0c\u8bf7\u4e86\u89e3\u4e00\u4e0b Linux \u76ee\u5f55\u5c42\u6b21\u7ed3\u6784[5]\u3002<\/p>\n

    \u4f7f\u7528 Ascii Image Converter<\/strong><\/span><\/div>\n

    \u4f7f\u7528\u5f88\u7b80\u5355\u3002\u5b89\u88c5\u540e\uff0c\u4f60\u53ea\u9700\u8981\u63d0\u4f9b\u4f60\u60f3\u8f6c\u6362\u7684\u56fe\u50cf\u7684\u8def\u5f84\u3002<\/p>\n

    ascii-image-converter path_to_image<\/pre>\n

    \u4f60\u4e5f\u53ef\u4ee5\u63d0\u4f9b\u56fe\u7247\u7684 URL\uff0c\u76f4\u63a5\u4ece\u7f51\u4e0a\u628a\u56fe\u7247\u8f6c\u6362\u6210 ASCII\u3002<\/p>\n

    \u8fd9\u662f\u6211\u7684\u4e2a\u4eba\u8d44\u6599\u7167\u7247\u8f6c\u6362\u6210 ASCII \u683c\u5f0f\u3002\u6211\u628a\u6211\u7684\u539f\u59cb\u7167\u7247\u653e\u5728\u8fd9\u91cc\u4f9b\u5927\u5bb6\u53c2\u8003\u3002<\/p>\n

    \"\"<\/p>\n

    \u4f60\u4e5f\u53ef\u4ee5\u8f6c\u6362\u6210\u5f69\u8272\u7684 ASCII\u3002<\/p>\n

    ascii-image-converter -C path_to_image<\/pre>\n

    \"\"<\/p>\n

    \u4f60\u53ef\u4ee5\u901a\u8fc7\u63d0\u4f9b\u5b83\u4eec\u7684\u8def\u5f84\u5c06\u591a\u4e2a\u56fe\u50cf\u8f6c\u6362\u4e3a ASCII\u3002\u5b83\u5c06\u5728\u7ec8\u7aef\u663e\u793a\u5668\u4e0a\u4e00\u4e2a\u63a5\u4e00\u4e2a\u5730\u6253\u5370 ASCII \u7248\u672c\u3002<\/p>\n

    \u4e5f\u6709\u4e00\u4e2a\u9009\u9879\u53ef\u4ee5\u4fdd\u5b58\u751f\u6210\u7684 ASCII \u827a\u672f\u3002\u5728\u65e7\u7248\u672c\u4e2d\uff0c\u5b83\u53ea\u4f1a\u88ab\u4fdd\u5b58\u4e3a\u6587\u672c\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u56fe\u50cf\u3002\u5f00\u53d1\u8005 Zoraiz Hassan \u53d1\u5e03\u4e86\u4e00\u4e2a\u65b0\u7248\u672c\uff0c\u73b0\u5728\u8be5\u5de5\u5177\u9ed8\u8ba4\u5c06\u751f\u6210\u7684 ASCII \u56fe\u50cf\u4fdd\u5b58\u4e3a PNG \u683c\u5f0f\u3002<\/p>\n

    ascii-image-converter path_to_image -s .<\/pre>\n

    \u8fd8\u6709\u4e00\u4e9b\u53ef\u7528\u7684\u9009\u9879\uff0c\u6bd4\u5982\u7ed9\u8f93\u51fa\u4e00\u4e2a\u7279\u5b9a\u7684\u5c3a\u5bf8\uff0c\u4f7f\u7528\u66f4\u591a\u7684 ASCII \u5b57\u7b26\uff0c\u6216\u8005\u4f7f\u7528\u4f60\u81ea\u5df1\u7684\u5b57\u7b26\u96c6\u6765\u6253\u5370 ASCII \u827a\u672f\u3002\u4f60\u53ef\u4ee5\u5728 \u9879\u76ee\u7684\u4ed3\u5e93[6] \u4e0a\u9605\u8bfb\u76f8\u5173\u5185\u5bb9\u3002<\/p>\n

    \u559c\u6b22\u5b83\u5417\uff1f<\/strong><\/span><\/div>\n

    \u4f60\u559c\u6b22\u66f4\u591a\u7684 ASCII \u76f8\u5173\u7684\u4e1c\u897f\u5417\uff1f\u90a3\u4e48 \u5728 Linux \u4e0a\u73a9 ASCII \u6e38\u620f[7] \u600e\u4e48\u6837\uff1f\u662f\u7684\uff0c\u4f60\u5b8c\u5168\u53ef\u4ee5\u8fd9\u4e48\u505a\u3002<\/p>\n

    \u5982\u679c\u4f60\u559c\u6b22\u5728\u7ec8\u7aef\u505a\u5b9e\u9a8c\uff0c\u4f60\u53ef\u80fd\u4f1a\u559c\u6b22\u8fd9\u4e2a\u5de5\u5177\u3002\u867d\u7136\u6211\u4e0d\u77e5\u9053 ASCII \u8f6c\u6362\u540e\u7684\u56fe\u50cf\u80fd\u6709\u4ec0\u4e48\u597d\u7684\u5b9e\u9645\u7528\u9014\u3002\u6709\u4ec0\u4e48\u60f3\u6cd5\u5417\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u60f3\u5728 Linux \u7ec8\u7aef\u4e2d\u505a\u4e00\u4e9b\u6709\u8da3\u7684\u4e8b\u60c5\u5417\uff1f\u628a\u4e00\u5f20\u666e\u901a\u7684\u56fe\u7247\u8f6c\u6362\u6210 ASCII \u827a\u672f\u600e\u4e48\u6837\uff1f \u4f60\u77e5\u9053 \u4ec0\u4e48\u662f […]<\/p>\n","protected":false},"author":317,"featured_media":219971,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-222573","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/222573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/317"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=222573"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/222573\/revisions"}],"predecessor-version":[{"id":222587,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/222573\/revisions\/222587"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/219971"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=222573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=222573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=222573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}