{"id":4014,"date":"2013-12-20T17:04:56","date_gmt":"2013-12-20T15:04:56","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=4014"},"modified":"2013-12-20T17:04:56","modified_gmt":"2013-12-20T15:04:56","slug":"php-fatal-error-call-to-undefined-method-imagickgetimagealphachannel","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=4014","title":{"rendered":"PHP Fatal error:  Call to undefined method Imagick::getImageAlphaChannel()"},"content":{"rendered":"<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0447\u0442\u043e \u0432 \u0442\u0435\u043c\u0435. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u043e\u0434\u0443\u043c\u0430\u044e\u0442, \u0447\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043c\u043e\u0434\u0443\u043b\u044c <strong>imagick<\/strong> (\u0438\u043b\u0438 \u0441\u0430\u043c <strong>ImageMagick<\/strong>) \u0434\u043b\u044f <strong>php<\/strong>. \u041d\u043e \u043d\u0435 \u0442\u0443\u0442-\u0442\u043e \u0431\u044b\u043b\u043e. \u041c\u043e\u0434\u0443\u043b\u044c (\u0434\u0430 \u0438 \u0441\u0430\u043c <strong>ImageMagick<\/strong>) \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u0432\u0438\u0434\u0435\u043d \u0447\u0435\u0440\u0435\u0437 <strong>php -m<\/strong>, \u0440\u0435\u0438\u043d\u0441\u0442\u0430\u043b\u043b \u043c\u043e\u0434\u0443\u043b\u044f \u0442\u043e\u0436\u0435 \u043d\u0435 \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. \u0427\u0435\u0440\u0435\u0437 <strong>ldd<\/strong> \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0432\u0438\u0434\u043d\u043e. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043e\u0434\u043d\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u0435: \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u0441 \u0441\u0430\u043c\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c <strong>imagick.so<\/strong>.<\/p>\n<p><!--more--><\/p>\n<p>\u0418 \u0442\u0443\u0442 \u043c\u0435\u043d\u044f \u043e\u0441\u0435\u043d\u0438\u043b\u043e: \u0430 \u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0442 \u0432 \u043b\u0438\u0431\u0435? \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<\/p>\n<p><code># strings imagick.so | grep -i ImageAlphaChannel<br \/>\nzim_imagick_getimagealphachannel<br \/>\nMagickGetImageAlphaChannel<br \/>\nzim_imagick_setimagealphachannel<br \/>\nMagickSetImageAlphaChannel<br \/>\nsetimagealphachannel<\/code><\/p>\n<p>\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00a0<strong>getImageAlphaChannel<\/strong> \u043d\u0435\u0442!<\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0434\u0435\u043b\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0437\u0430 \u043c\u0430\u043b\u044b\u043c &#8211; \u043d\u0430\u0439\u0442\u0438 (\u0438\u043b\u0438 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432) \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043b\u0438\u0431\u0443, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u044d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f. \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 (<strong>centos 6.2, php5.3.3<\/strong>) \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0441\u043a\u0430\u0442\u044c <strong>rpm<\/strong>-\u043f\u0430\u043a\u0435\u0442 \u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 <strong>rpm2cpio<\/strong>, \u0447\u0442\u043e \u0431\u044b \u0438\u0437\u0432\u043b\u0435\u0447\u044c <strong>imagick.so<\/strong>. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432\u0441\u0451 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e:<\/p>\n<p><code># strings imagick.so | grep -i ImageAlphaChannel<br \/>\nzim_imagick_getimagealphachannel<br \/>\nMagickGetImageAlphaChannel<br \/>\nzim_imagick_setimagealphachannel<br \/>\nMagickSetImageAlphaChannel<br \/>\nsetimagealphachannel<br \/>\ngetimagealphachannel<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0447\u0442\u043e \u0432 \u0442\u0435\u043c\u0435. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u043e\u0434\u0443\u043c\u0430\u044e\u0442, \u0447\u0442\u043e \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043c\u043e\u0434\u0443\u043b\u044c imagick (\u0438\u043b\u0438 \u0441\u0430\u043c ImageMagick) \u0434\u043b\u044f php. \u041d\u043e \u043d\u0435 \u0442\u0443\u0442-\u0442\u043e \u0431\u044b\u043b\u043e. \u041c\u043e\u0434\u0443\u043b\u044c (\u0434\u0430 \u0438 \u0441\u0430\u043c ImageMagick) \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u0432\u0438\u0434\u0435\u043d \u0447\u0435\u0440\u0435\u0437 php -m, \u0440\u0435\u0438\u043d\u0441\u0442\u0430\u043b\u043b \u043c\u043e\u0434\u0443\u043b\u044f \u0442\u043e\u0436\u0435 \u043d\u0435 \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. \u0427\u0435\u0440\u0435\u0437 ldd \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0432\u0438\u0434\u043d\u043e. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043e\u0434\u043d\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u0435: \u0447\u0442\u043e-\u0442\u043e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,15],"tags":[],"class_list":["post-4014","post","type-post","status-publish","format-standard","hentry","category-others","category-www"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4014"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4014\/revisions"}],"predecessor-version":[{"id":4015,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4014\/revisions\/4015"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}