at ç»åå¤æNight
mod_ktai ï¼ãã£ã©ã»ãã¼ããï¼ ãmod_ktaiãã¯ãå¼ç¤¾ãéçºããApacheã¢ã¸ã¥ã¼ã«ã§ãã Apacheä¸ã§åãã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦ãéçºè¨èªãåããæºå¸¯ãµã¤ãä½æã®ããã®æ§ã ãªæ©è½ãæä¾ãããã¨ãã§ãã¾ãã ææ°æ å ± 2008/12/26 mod_ktai_emojiããã¥ã¢ã«ã«è¿½è¨ & ããããã質åã«ã¤ãã¦ããã¼ã¸ãæ°è¦è¿½å 2008/10/29 mod_ktai第äºå¼¾å ¬é(mod_ktai_image) & ãã¼ã¸ã§ã³ã¢ãã & 対å¿ï¼¯ï¼³ãé å¸ããã±ã¼ã¸è¿½å 2008/07/16 mod_ktai第ä¸å¼¾å ¬é(mod_ktai_infoãmod_ktai_emoji) åä½ç°å¢ mod_ktaiã¯ç¾å¨ä»¥ä¸ã®ç°å¢ã§åä½ãã¾ãã OSï¼CentOS 5ãRedHat Enterprise 5 ããã«ã¦ã§ã¢ï¼Apache 2.2以ä¸ãBoost 1.3
Webãµã¤ãã«ããããµã ãã¤ã«ç»åã¨SMALL LIGHTã«ã¤ã㦠Webãµã¤ãã§ãµã ãã¤ã«ç»åãå¿ è¦ã«ãªãã¨ããã®ã¯å¤ã. ã¢ãããã¼ãæã«Resizeä½ããï½ã¨ã,ãªãã ã¨ãããã ã¨ã,éç¨ã¾ã§èãã¦ã¿ãã¨,æå¤ã¨ã¡ã³ãã¯ãµã¤åé¡ã§ãã£ãããã. ããã¦,ä»æ§å¤æ´ã§Resizeç»åãµã¤ãºå¤æ´ã,ã¨ã.çµæ§æ»ãã. SMALL LIGHT(ã¹ã¢ã¼ã«ã©ã¤ã)ã¯,ãããªãµã ãã¤ã«ç»åã®ä½æã管çãè¯ãæãã«ãã£ã¦ãããlivedoor ã©ããEDGEã製ã®Apacheã¢ã¸ã¥ã¼ã«. åçã¯åç´ã§,Apacheä¸ã§mod_small_lightã¨ããã¢ã¸ã¥ã¼ã«ãå±éãã¦ããã¦,ããã¤ãImageMagickãimlib2ã¨ãã£ãç»åå¤æã½ããã¦ã§ã¢ã®ã©ããã¼ã¨ãã¦åãã¦ãããã¨ããããã§ã. ãããã¦ã¿ãã¨ããããã©,ãæ軽ã ã,ããªã便å©. livedoorãªã©ã®å¤§è¦æ¨¡ãµã¤ãã§ãå©ç¨ããã¦ãã
ä»æ´ã§ãããlivedoor ã«ããæä¾ããã¦ãã mod_small_light ãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ããã mod_small_light ã¯åçã«ãµã ãã¤ã«ç»åãçæãããã§ãã Apache ã¢ã¸ã¥ã¼ã«ã§ãã SMALL LIGHT ãããããç»åãµã ãã¤ã«ä½æã¢ã¸ã¥ã¼ã«ã | livedoor labs EDGE http://labs.edge.jp/smalllight/ ã¡ãªã¿ã«ãmod_small_light 㯠OpenMP ãæå¹ãª ImageMagick ã§ã¯ãã«ãæã«ã¨ã©ã¼ã«ãªã£ã¦ãã¾ããããªã®ã§ãååã¤ã³ã¹ãã¼ã«ãã OpenMP ãç¡å¹ã«ãããã®ã使ç¨ãã¦ãã¾ãã ==================== 2013/06/15 è¿½è¨ ==================== ã³ã¡ã³ãæ¬ã§ id:cubicdaiya ããã«æãã¦é ãã¾ããã 以ä¸ã«ããããã
CentOS ã® Yum 㧠ImageMagick ãå ¥ããã¨ã以ä¸ã®ããã«ããã©ã«ã㧠OpenMP ãæå¹ã«ãªã£ã¦ãã¾ãã # yum install -y ImageMagick # convert --version Version: ImageMagick 6.5.4-7 2012-05-07 Q16 OpenMP http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC OpenMP ãæå¹ã ã¨ãã«ãã¹ã¬ãããªã©ã§ã®ä½¿ç¨æã«è² è·çãé«ããªã£ã¦ãã¾ããã¨ããäºãªã®ã§ã OpenMP ãç¡å¹ã«ãã RPM ãä½æãã¦ã¿ã¾ããã ç°å¢ã¯ CentOS 6.3 x86_64 ã§ãã RPM ä½æã®ããã®æºå ã¾ã㯠RPM ä½æã«å¿ è¦ãª rpmbuild 㨠rpmdevt
ããã«ã¡ã¯ãã¯ã©ã¤ã¢ã³ãåºç¤ãã¼ã ã®ããã§ãã ã¢ãã¿ã¼çã表示ããçºã« PNG ã JPEG ã®ç»åãå ã« GIF ã¢ãã¡ã¼ã·ã§ã³ãçæããäºãããããã¾ãããGIF 㯠256è²ã¾ã§ããæ±ããªãçºãå ç»åãæ°ä¸ã¨ãã£ãåä½ã§è²ã使ã£ã¦ããã¨æ¸è²å¦çã«å¤§å¤æéããããã¾ããããã§ãImageMagick ã®æ¸è²å¦çãæ¹é ãã¦é«éåããäºä¾ããç´¹ä»ãã¾ãã å°ãä¸åº¦ã«èªãåéã§ã¯ã¾ã¨ãåããªãçºãåç·¨ã¨å¾ç·¨ã«åãã¾ãããåç·¨ã¯æ¸è²å¦çãå¾ç·¨ã¯ãã®æ¹é ã«ã¤ãã¦èª¬æãã¾ãã ããã°ã©ã æ§æã§ã¯ä¸ã®å³ã® magick/quantize.c ãæ¸è²å¦çã«ç¸å½ãã¾ãã ã¾ããæ¸è²å¦çã®ä¸è¬çãªè©±ããå§ãã¾ãã æ¸è²ã®å©ç¹ Web ã§è¦ãããç»åãã¡ã¤ã«ã®å¤ãã¯ã1ã¤ã®pixel(æç»ã®æå°åä½)ã«å¯¾ãã¦ãRed, Green, Blue ãåã 8bits ã§è¨ 24bits(= 3bytes) ãé
ImageMagickã®åºæ¬çãªä½¿ãæ¹ ããã§ã¯ãè¡æç»åãé¡æã«ãã¦ãImageMagickã®åºæ¬çãªä½¿ãæ¹ã説æãã¦ãã¾ãã Windowsã§æ¼ç¿ããå ´åã«ã¯ãåæã¨ãã¦ãCygwinãImageMagickã® ã¤ã³ã¹ãã¼ã«ãæ¸ã¿ãPATHãè¨å®ãã¦ãããã®ã¨ãã¾ãã ã¡ãªã¿ã«ãLinuxã§ã¯ImageMagickã®åã³ãã³ããã¤ã³ã¹ãã¼ã«ã ãã¦ãããã¨ãå¤ãã®ã§ãLinuxç°å¢ã®äººã¯ããã«ä¸è¨ã®æ¼ç¿å 容ã試ããã¨ã ã§ããã¯ãã§ãã ImageMagickã®ä¸ã§ãã convert composite ã使ç¨ãã¾ããç¹ã«ãconvertã¯ãã使ç¨ãã¾ãã®ã§ã使ã ããªããããã«ãªã£ã¦ãã ããã ãã®æ¼ç¿ã§å¦çããç»åä¾ã¯ã ãã®ãã¼ã¸ã®æ«å°¾ã«æ²è¼ããã¦ãã¾ãã®ã§ã åç §ãã¦ãã ããã ç»åã®ä¿å ã¾ãã¯ã以ä¸ã®æ¼ç¿ã§ä½¿ç¨ããç»åï¼JPEGç»åï¼ãã³ã1ã7ï¼ãä¿åãããã [ãã³ã
2. ç»åãµã ãã¤ã« ãµã ãã¤ã«ã®æ§ç¯ â ã¢ãããã¼ããããç»åããµã ãã¤ã«åï¼ç¸®å°ï¼ â ãµã ãã¤ã«åãããç»åãä¿å ããããã㨠â è¤æ°ãã¿ã¼ã³ã®ãµã ãã¤ã«ï¼å¤§ã»ä¸ã»å°ã»ç¸¦é·ãªã©ï¼ â æ©è½è¿½å ã«ãããµã ãã¤ã«ãã¿ã¼ã³ã®å¢å 管çãé¢å åçã«çæ 3. Small Light Small Light(ã¹ã¢ã¼ã«ã©ã¤ã) â to smaller â å°ãã â to lighter â 軽ã Small + Light = Small Light
The document describes TOFU (Tofu on the Fly), a system for dynamically generating and caching image thumbnails on Amazon S3. It works by installing an Apache module that generates thumbnails using ImageMagick when images are requested, then caches them on S3 for future requests. This avoids hitting application servers for every image and provides scalability. The document discusses the TOFU archi
ããã«ã¡ã¯ãããã«ã¦ã§ã¢éçºãã¼ã ã®ããã§ãã ä»åã¯ãImageMagick ã«ã¤ãã¦ã話ãã¾ãã http://www.imagemagick.org/ ImageMagick ã¯é«æ©è½ã§å¤§å¤ä¾¿å©ãªç»åå¦çãã¼ã«ã§ããå¼ç¤¾ã§ãå©ç¨ããã¦é ãã¦ãã¾ãããç¨ã«å®ãµã¼ãã¹ã«ãã®ã¾ã¾é©ç¨åºæ¥ãªãã±ã¼ã¹ãããã¾ãã ããã§ãå°ã£ãæã« ImageMagick èªä½ãæ¹é ããéã®ãã¤ã³ãã¨ãå®éã®å¿ç¨ä¾ããç´¹ä»ãã¾ãã ImageMagick ã®ããã°ã©ã æ§é ImageMagick ã®ããã°ã©ã ã¯ä¸»ã«ä»¥ä¸ã®ãã£ã¬ã¯ããªã«åããã¾ãã(Magick+ ãã£ã¬ã¯ããªçå¹¾ã¤ãã¯å²æãã¾ã) utilities/<ã³ãã³ãå>.c ã³ãã³ãã©ã¤ã³ãã¼ã«ã®èµ·ç¹(main é¢æ°) wand/ã.c (ã³ãã³ãå ±éå¦çã¨ã³ãã³ãæ¯ã®å¦çãWand API) magick/ã.c (æ©è½ã¢ã¸ã¥ã¼ã«ãã¦ã¼ãã£ãªã
ä¸è¬çã« ImageMagick ã®ãµã ãã¤ã«ç»åçæã¯é ãã¨ããã¦ãããããã©ã¼ãã³ã¹ãæ±ããããã·ã¼ã³ã§ã¯ Imlib2 ãªã©ã®ããé«éãªç»åå¦çã©ã¤ãã©ãªã使ããããã¨ãå¤ãã§ãã Imlib2 ã®é«éãã«ã¤ãã¦ã¯ã以åãImlib2ã§ImageMagickãã3åé«éãã¤ç¾ãããµã ãã¤ã«ç»åã®çæ - åºã®ãã«ã¹ãã¤ãã²ã¤ã¨ããã¨ã®ãã¨ãã¨ããè¨äºã§ç´¹ä»ãã¾ããããã®è¨äºã®ãã³ããã¼ã¯ã«ããã¦ãImlib2 ã«ãããµã ãã¤ã«ç»åã®çæã¯ã ImageMagick ã®3åç¨é«éã§ããã ãããã ImageMagick 㯠Imlib2 ããç»è³ªããããé«æ©è½ã§ä½¿ãããããä»ãé »ç¹ã«ã¡ã³ããã³ã¹ããã¦ãããã¨ã¦ãããåºæ¥ã¦ãã¾ãããã®ç¹ Imlib2 ã¯ã2004å¹´ããã¡ã³ããã³ã¹ããã¦ããããã»ãã¥ãªãã£ãã¼ã«ãè¦ã¤ãã£ã¦ããåLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ãããããããããå½ã¦
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}