{"id":1352,"date":"2022-11-24T18:32:12","date_gmt":"2022-11-24T09:32:12","guid":{"rendered":"https:\/\/darkgray.homelinux.com\/blog\/?p=1352"},"modified":"2022-11-24T23:42:43","modified_gmt":"2022-11-24T14:42:43","slug":"imagemagick%e3%82%92php%e3%81%a7%e4%bd%bf%e3%81%88%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/darkgray.homelinux.com\/blog\/?p=1352","title":{"rendered":"imagemagick\u3092php\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u3002"},"content":{"rendered":"\n<p>\u3000Wordpress\u306e\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u306e\u30da\u30fc\u30b8\u3092\u4e45\u3057\u3076\u308a\u306b\u958b\u3044\u3066\u307f\u308b\u3068\u3000\u300cImagemagick\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u3002\u300d\u3000\u307f\u305f\u3044\u306a\u4e8b\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3000\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u3000\u307e\u305a\u30b5\u30a4\u30c8\u306b\u3000imagemagic\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code class=\"\">[]$ dnf list ImageMagick\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u30d1\u30c3\u30b1\u30fc\u30b8\nImageMagick.x86_64         1:6.9.12.67-1.el8.remi             @remi\n[]$<\/code><\/pre>\n\n\n\n<p>\u3000\u30a6\uff5e\uff5e\u30df\u30a3\u3000ImageMagick\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u6a21\u69d8\u30fb\u30fb\u30fb\u3000\u3060\u304c\u3041\u3057\u304b\u3057\u3043\u3000php(WordPress)\u3067\u306f\u4f7f\u7528\u3067\u304d\u306a\u3044\u30fb\u30fb\u30fb\u3002\u3000\u306a\u3093\u3060\u304b\u306a\u30fb\u30fb<\/p>\n\n\n\n<p>\u3000<a rel=\"noreferrer noopener\" href=\"https:\/\/ex1.m-yabe.com\/archives\/6207\" target=\"_blank\">\u3053\u306e\u30b5\u30a4\u30c8<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u3000\u5165\u529b\u3057\u305f\u30b3\u30de\u30f3\u30c9\u306e\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code class=\"\">[]$ dnf install php-devel php-pear make\n\u9014\u4e2d\u7565\u3000\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5185\u5bb9\u304b\u3089\u3059\u308b\u3068\u3000\u65e2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3002\n\n[]$ dnf install php-devel php-pear make\n\u9014\u4e2d\u7565\u3000\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5185\u5bb9\u304b\u3089\u3059\u308b\u3068\u3000\u65e2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3002\n\n[]$ pecl install imagick\n\u9014\u4e2d\u7565\u3000\u6700\u521d\u306b\u30ef\u30fc\u30cb\u30f3\u30b0\u3081\u30fc\u3063\u305b\u30fc\u3058\u304c\u8868\u793a\u3055\u308c\u3066\u3000\u305d\u306e\u5f8cimsgick\u304c\u30d3\u30eb\u30c9\u3055\u308c\u305f\u3002\n\n\u30d3\u30eb\u30c9\u306e\u5f8cphp.ini\u306e\u7de8\u96c6\u304c\u5fc5\u8981\u3060\u304c\u3001\u78ba\u8a8d\u3057\u305f\u3089\u3000\u65e2\u306b\u7de8\u96c6\u6e08\u307f\u3060\u3063\u305f\u306e\u3067\u7701\u7565\u3002\n\n[]$ systemctl restart php-fpm\n\u9014\u4e2d\u7565\u3000\u5ff5\u306e\u70ba\u3000php-fpm\u3092\u518d\u8d77\u52d5\u3057\u305f\u3002\n\n[]# php -m | grep imagick\nimagick<\/code><\/pre>\n\n\n\n<p>\u3000\u4ee5\u4e0a\u3067\u3000php\u306bImageMagick\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u306a\u304a\u3000ImageMagick\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f\u3000epel\u306a\u3069\u306e\u62e1\u5f35\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002\u5f53\u30b5\u30a4\u30c8\u3067\u306f\u3000\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u62e1\u5f35\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3067\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3000\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u30ea\u30b9\u30c8\u306b\u306f\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3000<\/p>\n\n\n\n<p>\u3000\u66f4\u306b\u8abf\u67fb\u3092\u9032\u3081\u3066\u3044\u308b\u3068\u3000ImageMagick\u306b\u306f\u30d0\u30b0\u304c\u591a\u304f\u5b58\u5728\u3059\u308b\u3089\u3057\u3044\u3067\u3059\u3002\u8a73\u7d30\uff08\u30d0\u30b0\u306e\u30ec\u30d9\u30eb\u3068\u304b\u30fb\u30fb\uff09\u306f\u8ffd\u3044\u304b\u3051\u3066\u306a\u3044\u306e\u3067\u3088\u304f\u5206\u304b\u308a\u307e\u305b\u3093\u3002<a href=\"https:\/\/qiita.com\/yoya\/items\/2076c1f5137d4041e3aa\" target=\"_blank\" rel=\"noreferrer noopener\">\u3053\u306e\u30b5\u30a4\u30c8\u306e\u8a18\u4e8b<\/a>\u306b\u5f93\u3063\u3066 \u51e6\u7406\u5bfe\u8c61\u306e\u753b\u50cf\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u5236\u9650\u3059\u308c\u3070\u3000\u30c7\u30d5\u30a9\u30eb\u30c8\u72b6\u614b\u3088\u308a\u306f\u5b89\u5168\u306b\u306a\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000Wordpress\u306e\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9\u306e\u30da\u30fc\u30b8\u3092\u4e45\u3057\u3076\u308a\u306b\u958b\u3044\u3066\u307f\u308b\u3068\u3000\u300cImagemagick\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u3002\u300d\u3000\u307f\u305f\u3044\u306a\u4e8b\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3000\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":1346,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5,81,26],"tags":[],"class_list":["post-1352","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-darkgray-server","category-php","category-wordpress"],"_links":{"self":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1352"}],"version-history":[{"count":6,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1352\/revisions"}],"predecessor-version":[{"id":1358,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1352\/revisions\/1358"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/1346"}],"wp:attachment":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}