{"id":183,"date":"2021-02-06T09:04:04","date_gmt":"2021-02-06T00:04:04","guid":{"rendered":"https:\/\/sakae-shokai.com\/?p=183"},"modified":"2021-02-07T19:55:17","modified_gmt":"2021-02-07T10:55:17","slug":"imagemagick%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/sakae-shokai.com\/wordpress\/?p=183","title":{"rendered":"ImageMagick\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"\n<p>wordpress\u3067\u3001\u3044\u307e\u3060\u306b\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u63a8\u5968\u304c\u51fa\u3066\u308b\u306e\u3067\u3001ImageMagick\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4f5c\u696d\u306f\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8<a rel=\"noreferrer noopener\" href=\"https:\/\/www.kkaneko.jp\/tools\/ubuntu\/imagemagick.html\" target=\"_blank\">https:\/\/www.kkaneko.jp\/tools\/ubuntu\/imagemagick.html<\/a>\u3092\u53c2\u7167\u3002<\/p>\n\n\n\n<p>\u4e0b\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b\u9806\u306b\u4f5c\u696d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sakae@:\/tmp\/ImageMagick$ sudo apt -y install build-essential gcc g++ make libtool texinfo dpkg-dev pkg-config\nsakae@:\/tmp\/ImageMagick$ sudo apt -y install git\nsakae@:\/tmp\/ImageMagick$ cd \/tmp\nsakae@:\/tmp\/ImageMagick$ rm -rf ImageMagick\nsakae@:\/tmp\/ImageMagick$ git clone https:\/\/github.com\/ImageMagick\/ImageMagick\nsakae@:\/tmp\/ImageMagick$ cd ImageMagick\nsakae@:\/tmp\/ImageMagick$ .\/configure --without-perl\nsakae@:\/tmp\/ImageMagick$ make\nsakae@:\/tmp\/ImageMagick$ sudo make install\nsakae@:\/tmp\/ImageMagick$ make check<\/code><\/pre>\n\n\n\n<p>\u53d6\u308a\u6562\u3048\u305a\u30a8\u30e9\u30fc\u304c\u51fa\u305a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7d42\u4e86\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u3067\u3082\u3001\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u306f\u5909\u5316\u304c\u306a\u3044\u306e\u3067\u3001\u5225\u306e\u30b5\u30a4\u30c8<a rel=\"noreferrer noopener\" href=\"https:\/\/webjin.work\/ubuntu-install-imagemagick\/\" target=\"_blank\">https:\/\/webjin.work\/ubuntu-install-imagemagick\/<\/a>\u3092\u53c2\u8003\u306b\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@:\/etc\/php\/7.4\/apache2# apt install imagemagick\nroot@:\/etc\/php\/7.4\/apache2# apt install libmagickwand-dev\nroot@:\/etc\/php\/7.4\/apache2# apt install pkg-config\n<\/code><\/pre>\n\n\n\n<p>pkg-config\u306f\u65e2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u305f\u307f\u305f\u3044\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30ad\u30c3\u30d7\u306e\u53cd\u5fdc<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Reading package lists... Done\nBuilding dependency tree\nReading state information... Done\npkg-config is already the newest version (0.29.1-0ubuntu4).\nThe following packages were automatically installed and are no longer required:\n  libpciaccess0 python3-xkit ubuntu-drivers-common\nUse 'apt autoremove' to remove them.\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\n\n<\/code><\/pre>\n\n\n\n<p>\u6b21\u306b\u9032\u3080<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@:\/etc\/php\/7.4\/apache2# apt install php-dev\nroot@:\/etc\/php\/7.4\/apache2# pecl install imagick\n\n<\/code><\/pre>\n\n\n\n<p>imagick\u7121\u4e8b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u307f\u305f\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Build process completed successfully\nInstalling '\/usr\/lib\/php\/20190902\/imagick.so'\nInstalling '\/usr\/include\/php\/20190902\/ext\/imagick\/php_imagick_shared.h'\ninstall ok: channel:\/\/pecl.php.net\/imagick-3.4.4\nconfiguration option \"php_ini\" is not set to php.ini location\nYou should add \"extension=imagick.so\" to php.ini\n\n<\/code><\/pre>\n\n\n\n<p>WEB\u30b5\u30fc\u30d0\u30fc\u3092\u30ea\u30b9\u30bf\u30fc\u30c8\u3057php.info\u3092\u898b\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@:\/etc\/php\/7.4\/apache2# \/etc\/init.d\/apache2 restart\nRestarting apache2 (via systemctl): apache2.service.<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"533\" src=\"https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2021\/02\/image-1.png\" alt=\"\" class=\"wp-image-191\" srcset=\"https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2021\/02\/image-1.png 946w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2021\/02\/image-1-300x169.png 300w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2021\/02\/image-1-768x433.png 768w, https:\/\/sakae-shokai.com\/wordpress\/wp-content\/uploads\/2021\/02\/image-1-320x180.png 320w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u3082\u7121\u4e8b\u306b\u6d88\u3048\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>wordpress\u3067\u3001\u3044\u307e\u3060\u306b\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u63a8\u5968\u304c\u51fa\u3066\u308b\u306e\u3067\u3001ImageMagick\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002 \u4f5c\u696d\u306f\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8https:\/\/www.kkaneko.jp\/tools\/ubuntu\/imagem &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/sakae-shokai.com\/wordpress\/?p=183\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;ImageMagick\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":191,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-183","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-archive"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=183"}],"version-history":[{"count":7,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions\/192"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/191"}],"wp:attachment":[{"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sakae-shokai.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}