debian squeeze 㧠gem install rmagick ããã¨ãã«ã Can't find Magick-config ã¨ã®ã¨ã©ã¼ãåºã¦ãã¤ã³ã¹ãã¼ã«åºæ¥ãªãå ´åã apt-get install libmagick9-dev ã¨ããã°ããã require 'rubygems' require 'RMagick' ã§ã¤ã³ã¹ãã¼ã«åºæ¥ã¦ãããã¨ã確èªã RMagick èªä½ã¯ãrubygems ã使ããªãã¦ãã apt-get install librmagick-ruby1.8 ã§ã¤ã³ã¹ãã¼ã«åºæ¥ãã
ãã¼ã ãã¼ã¸ãªã©ã§åçãå ¬éãã¦ããå ´åãªã©ããã¸ã«ã¡ã§æ®ã£ãããããã®åçãä¸æ¬ã§ç¸®å°(ãããã¯æ¡å¤§)ãããå ´åãããã imagemagickã使ãã°ã¨ã£ã¦ãç°¡åã«ã§ããã ä¾ãã° images ãã£ã¬ã¯ããªã®ç»åãå ¨ã¦ 500x375ã«ãªãµã¤ãºãããã£ãã: $ cd images $ mogrify -resize 500x375! *.jpg ä»ã«ãimagemagickã¯è²ã ãªãã¨ãããããã§ããããããããã詳ããããªã
Githubã§ç»åã®å·®åãè¦ãããã¢ã¼ãã話é¡ãå¼ã³ã¾ãããããã®ããã«2æã®ç»åã®å·®åã調ã¹ããã¨ãã£ã¦æã ããã¾ãããã ãããªã¨ãImageMagickã®ã³ãã³ãã©ã¤ã³ãã¼ã«ã使ãã°ããã£ã1è¡ã§å®ç¾ã§ãã¾ãã $ composite -compose difference A.jpg B.jpg diff.jpg ã¨ããã°ãA.jpg 㨠B.jpg ã®å·®åç»å diff.jpg ãä½ããã¾ãããã®å·®åç»åã¯ä»¥ä¸ã®ããã«ãªãã¾ãã ããã«ãã®å·®åç»åï¼diff.jpgï¼ããçã£é»ãªç»åããã©ããããã³ãã³ãã©ã¤ã³ã§èª¿ã¹ããã¨ãã§ãã¾ãã # å·®åããªãã£ãå ´åï¼ï¼diff.jpgã¯é»ä¸è²ã®ç»åï¼ $ identify -format "%[mean]" diff.jpg 0 # å·®åããã£ãå ´å $ identify -format "%[mean]" diff.jpg 960.8
ä¸è¬çã« ImageMagick ã®ãµã ãã¤ã«ç»åçæã¯é ãã¨ããã¦ãããããã©ã¼ãã³ã¹ãæ±ããããã·ã¼ã³ã§ã¯ Imlib2 ãªã©ã®ããé«éãªç»åå¦çã©ã¤ãã©ãªã使ããããã¨ãå¤ãã§ãã Imlib2 ã®é«éãã«ã¤ãã¦ã¯ã以åãImlib2ã§ImageMagickãã3åé«éãã¤ç¾ãããµã ãã¤ã«ç»åã®çæ - åºã®ãã«ã¹ãã¤ãã²ã¤ã¨ããã¨ã®ãã¨ãã¨ããè¨äºã§ç´¹ä»ãã¾ããããã®è¨äºã®ãã³ããã¼ã¯ã«ããã¦ãImlib2 ã«ãããµã ãã¤ã«ç»åã®çæã¯ã ImageMagick ã®3åç¨é«éã§ããã ãããã ImageMagick 㯠Imlib2 ããç»è³ªããããé«æ©è½ã§ä½¿ãããããä»ãé »ç¹ã«ã¡ã³ããã³ã¹ããã¦ãããã¨ã¦ãããåºæ¥ã¦ãã¾ãããã®ç¹ Imlib2 ã¯ã2004å¹´ããã¡ã³ããã³ã¹ããã¦ããããã»ãã¥ãªãã£ãã¼ã«ãè¦ã¤ãã£ã¦ããåLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ãããããããããå½ã¦
display ç»åãã¥ã¼ã¯ã§ããï¼ãã¤ImageMagickãGUIã§æä½ãã¾ãï¼ãªãèµ·åã³ãã³ãã¯displayã§ãï¼imagemagickçã§ã¯ããã¾ããï¼ ä»¥ä¸ã¯ImageMagick V5.2.5 on Debian/GNU Linux potatoã§ã®ãã®ã§ãï¼ import ä»»æã®X Windowã®ã¹ã¯ãªã¼ã³ã·ã§ãããæ®ãã¾ãï¼import ã³ãã³ããå®è¡ããã¨ããã¦ã¹ã«ã¼ã½ã«ã + ãã¼ã¯ã«ä»£ãããã¹ã¯ãªã¼ã³ã·ã§ããã æ®ãããã¦ã£ã³ãã¦ãã¯ãªãã¯ããã¨ãã¼ãé³ãé³´ãï¼ output fileãä½æããã¾ãï¼ import [ options ... ] <output file> 以ä¸ã¯æå®å¯è½ãªãªãã·ã§ã³ã§ãï¼ ã» -frame ã¦ã£ã³ãã¦ããã¼ã¸ã£ã®ãã¬ã¼ã çãå«ããã¤ã¡ã¼ã¸ãä½æï¼ ã» -monochrome ç½é»ç»åãä½æï¼ ã» -window
CentOS5 ã« ImageMagick ãã¤ã³ã¹ãã¼ã«ããæ¹æ³ã¯æ¬¡ã®éãã CentOS5 ç¨ã® RPM ããã±ã¼ã¸ãè¦ã¤ãããªãã£ãã®ã§ã ã½ã¼ã¹ãã¡ã¤ã«ãã³ã³ãã¤ã«ãã¦ã¤ã³ã¹ãã¼ã«ãã¾ãã ã¾ãã¯ãImageMagickã®ã½ã¼ã¹ãã¡ã¤ã«ããã¦ã³ãã¼ãããã ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz ãã¦ã³ãã¼ãããã解åã»å±éãã¦ã ã³ã³ãã¤ã«ãã¦ãã¤ã³ã¹ãã¼ã«ããã # tar xvfz ImageMagick.tar.gz # cd ImageMagick-6.4.2 # ./configure # make # make install
ã¯ã¬ã¸ããã«ã¼ãã»ã¡ã¼ã«ã¼ã®éçºã¯Ubuntuã§è¡ãªãã¾ãããããã§RMagickãã¤ã³ã¹ãã¼ã«ã§ããã¾ã§ãããªãã¨ã¯è¡ããªãã£ãã®ã§åå¿é²ã¨ãã¦ããã°è¨äºã«ãã¾ãã ã¾ãä¾åããã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ã sudo apt-get install libfreetype6 sudo apt-get install libfreetype6-dev sudo apt-get install libjpeg62-dev sudo apt-get install libpng12-dev sudo apt-get install libwmf-dev sudo apt-get install libperl-dev sudo apt-get install libbz2-dev sudo apt-get install libz-dev sudo apt-get install libx11-
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}